Browse Source

fix scripts parameter

dev
rootzoll 6 years ago
parent
commit
dc0fd31e07
  1. 10
      home.admin/config.scripts/internet.dyndomain.sh

10
home.admin/config.scripts/internet.dyndomain.sh

@ -11,11 +11,17 @@ fi
turn="off" turn="off"
if [ "$1" = "1" ] || [ "$1" = "on" ]; then turn="on"; fi if [ "$1" = "1" ] || [ "$1" = "on" ]; then turn="on"; fi
echo "number of args($#)"
# 2. parameter [?domainName] # 2. parameter [?domainName]
dynDomain=$2 if [ $# > 1 ]; then
dynDomain=$2
fi
# 3. parameter [?domainName] # 3. parameter [?domainName]
dynUpdateUrl=$3 if [ $# > 2 ]; then
dynUpdateUrl=$3
fi
# run interactive if 'turn on' && no further parameters # run interactive if 'turn on' && no further parameters
if [ "${turn}" = "on" ] && [ ${#dynDomain} -eq 0 ]; then if [ "${turn}" = "on" ] && [ ${#dynDomain} -eq 0 ]; then

Loading…
Cancel
Save