RT-IPC_camera/etc/init.d/S05SetDefP2P

13 lines
335 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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