forked from ahurac/dotfiles
Ajout de l'option restart
This commit is contained in:
parent
509fe509e6
commit
9970be29c0
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@ cd "${HOME}/.vnc" || exit 5
|
|||
|
||||
# Variables
|
||||
file_base="./$(hostname):1."
|
||||
verbs="start|status|stop|restart|help"
|
||||
|
||||
echol() {
|
||||
col="$1"
|
||||
|
@ -24,7 +25,7 @@ help() {
|
|||
${name} - Start a VNC server
|
||||
|
||||
Usage:
|
||||
${name} start|status|stop|help
|
||||
${name} ${verbs}
|
||||
EOF
|
||||
}
|
||||
|
||||
|
@ -80,7 +81,7 @@ set +e; trap - EXIT
|
|||
|
||||
# Main case statement
|
||||
case "$arg" in
|
||||
start|status|stop|help)
|
||||
status|start|stop|restatr|help)
|
||||
"$arg"
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue