Browse Source

add shutdown

panda 4 years ago
parent
commit
47e648c15a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      splash.sh

+ 5 - 1
splash.sh

@@ -20,7 +20,8 @@ OPTIONS=(1 "htop"
          3 "newsbeuter"
 	 4 "profanity (xmpp+irc_gw)"
          5 "stats"
-         6 "LOCK")
+         6 "Shutdown!"
+         7 "LOCK")
 
 CHOICE=$(dialog --clear \
                 --backtitle "$BACKTITLE" \
@@ -47,6 +48,9 @@ case $CHOICE in
             $SCRIPTPATH/./stats.sh && $SCRIPTPATH/./splash.sh
             ;;
         6)
+            sudo shutdown -h now
+            ;;
+        7)
             vlock && $SCRIPTPATH/./splash.sh
             ;;
 esac