config file option

master
rasul 4 years ago
parent ef0d046878
commit 2398313487

@ -13,10 +13,11 @@ Update Hurricane Electric Dynamic DNS for DOMAIN with key in KEYFILE.
Requires curl to be installed in \$PATH. Requires curl to be installed in \$PATH.
Options: Options:
-4, --ipv4 use IPv4 -c, --config FILE get configuration from FILE instead of $config
-6, --ipv6 use IPv6 -4, --ipv4 use IPv4
-u, --url url to use, defaults to $url -6, --ipv6 use IPv6
-h, --help Display this help. -u, --url URL update dns at URL instead of $url
-h, --help Display this help
https://gitlab.com/rascul/he-ddns https://gitlab.com/rascul/he-ddns
" "
@ -28,9 +29,18 @@ show_help() {
args= args=
ipv4= ipv4=
ipv6= ipv6=
config=/etc/he-ddnsrc
while (($#)); do while (($#)); do
case $1 in case $1 in
-c|--config)
if [[ -n "$2" ]]; then
config="$2"
shift
else
die $LINENO "$help_text"
fi
;;
-4) -4)
ipv4=true ipv4=true
;; ;;

Loading…
Cancel
Save