diff options
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 |