RT-IPC_camera/etc/init.d/S05SetDefP2P

13 lines
335 B
Plaintext
Raw Normal View History

2023-03-31 22:47:53 -06:00
#!/bin/sh
####默认ID与密码
DEFAULT_P2P_ID="DOG002-999999-AAAAA,AAAAAA"
DEFAULT_P2P_PWD="luohe"
####如果没有默认P2P_ID的设置一个默认值
P2P_ID=`paraconf r 1 P2P_ID`
if [ "${P2P_ID}" == "null" ];then
paraconf w 1 P2P_ID ${DEFAULT_P2P_ID} P2P_PWD_BK ${DEFAULT_P2P_PWD}
paraconf w 2 P2P_PWD ${DEFAULT_P2P_PWD}
fi