X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=dns323-op.sh;h=08e3922e65c68bf57769a680e99eaee62049d39d;hp=af7a5ed447bcc6377936c46c9481bd0bff1129ea;hb=1e890fe2d9174c9885320fc48228a43b8154f87d;hpb=e2f53975cc8e22c351a9b8095f88320cc1c40db2 diff --git a/dns323-op.sh b/dns323-op.sh index af7a5ed..08e3922 100755 --- a/dns323-op.sh +++ b/dns323-op.sh @@ -58,7 +58,8 @@ function rm_temp () { function authentify_on_dns323 () { if [[ ! ${already_authentified} ]]; then echo "Authentifying on ${DNS323_HOSTNAME}." - curl -s > /dev/null \ + curl > /dev/null \ + -s \ -L http://${DNS323_HOSTNAME}/goform/formLogin \ -d "f_LOGIN_NAME=admin&f_LOGIN_PASSWD=${DNS323_ADMIN_PASSWORD}&f_login_type=0" \ || (echo "Failed." >&2 && exit 1) @@ -94,7 +95,7 @@ EOF trap rm_temp SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM ERR if [[ ${DNS323_HOSTNAME} ]] && \ - [[ ${DNS323_ADMIN_PASSWORD} ]]; then + [[ ${DNS323_ADMIN_PASSWORD} ]]; then while [[ $1 ]]; do @@ -186,7 +187,8 @@ if [[ ${DNS323_HOSTNAME} ]] && \ check_unmounted - curl -s > /dev/null \ + curl > /dev/null \ + -s \ -L http://${DNS323_HOSTNAME}/goform/System_restart \ -d ""