Update.
[scripts.git] / dns323-op.sh
index af7a5ed..08e3922 100755 (executable)
@@ -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 ""