diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-05 19:49:12 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-05 19:49:12 +0100 |
commit | a7309ce61c093caeb554c20497f4e4b765073203 (patch) | |
tree | 6e7c9e559253f0f0584175c582624eec29a0d5cb /bin/menuscripts/mpower | |
parent | 58bf86c706c5a442da4fb01ea26e06f1ed291d45 (diff) | |
parent | 112449dd19eaae6769ef95a70b3e52234256400c (diff) |
checkpoint
Diffstat (limited to 'bin/menuscripts/mpower')
-rwxr-xr-x | bin/menuscripts/mpower | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index 51b8e1d..b4b8640 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -9,5 +9,10 @@ hibernate EOF )" -[ "$choice" = "firmware" ] && systemctl reboot --firmware-setup -[ "$choice" ] && systemctl "$choice" +case "$choice" in + "suspend") doas /usr/sbin/zzz ;; + "poweroff") doas /usr/sbin/poweroff ;; + "reboot"|"firmware") doas /usr/sbin/reboot ;; + "") exit 1 ;; + *) ;; +esac |