„set-proxy.sh“ ändern

This commit is contained in:
Stephan 2020-11-10 15:06:56 +00:00
parent 6d1762d9ec
commit 1c387273b6
1 changed files with 16 additions and 16 deletions

View File

@ -7,22 +7,22 @@ ENABLE=true
while getopts ":p:h:ad?" opt; do
case ${opt} in
h) HOST=$OPTARG
;;
p) PORT=$OPTARG
;;
a) ENABLE=true
;;
d) ENABLE=false
;;
\?) echo "Usage: set-proxy [-p PORT_NUMBER] [-h HOSTNAME] [-a] [-d] [-?]"
echo " -p PORT_NUMBER : sets the portnumber (default: 3128)"
echo " -h HOSTNAME : sets the hostname (default: localhost)"
echo " -a : activates the proxy client (=default)"
echo " -d : disables the proxy client"
echo " -? : this help message"
exit 0
;;
esac
;;
p) PORT=$OPTARG
;;
a) ENABLE=true
;;
d) ENABLE=false
;;
\?) echo "Usage: set-proxy [-p PORT_NUMBER] [-h HOSTNAME] [-a] [-d] [-?]"
echo " -p PORT_NUMBER : sets the portnumber (default: 3128)"
echo " -h HOSTNAME : sets the hostname (default: localhost)"
echo " -a : activates the proxy client (=default)"
echo " -d : disables the proxy client"
echo " -? : this help message"
exit 0
;;
esac
done
/usr/syno/bin/synowebapi --exec \