13 lines
335 B
Plaintext
13 lines
335 B
Plaintext
|
#!/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
|