From 9970be29c0434344a5a1bcd4ae9d9c2f831198da Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Fri, 12 May 2023 15:18:32 +0200 Subject: [PATCH] Ajout de l'option restart --- bin/vncctl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/vncctl b/bin/vncctl index 480b5ee..409e788 100755 --- a/bin/vncctl +++ b/bin/vncctl @@ -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" ;; *)