„set-proxy.sh“ ändern
This commit is contained in:
parent
6d1762d9ec
commit
1c387273b6
32
set-proxy.sh
32
set-proxy.sh
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue