diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-27 22:50:50 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-27 22:50:50 +0100 |
commit | 066db981ba91d232bead8a4543d7647465197ded (patch) | |
tree | 64f4b092462fad5c92c6e8dbfa3f18cfa4460e38 | |
parent | 1e1b7fed63b806c2788baa4ca6c4244b7544006a (diff) |
fix commander
-rwxr-xr-x | bin/menuscripts/mpower | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index f8f7654..8c1a886 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -1,11 +1,13 @@ #!/bin/sh choice="$( -cat <<EOF | commander -c -w 1 -y 4 +cat <<EOF | commander -c -w 1 -y 5 poweroff suspend hibernate reboot +firmware EOF )" +[ "$choice" = "firmware" ] && systemctl reboot --firmware-setup [ "$choice" ] && systemctl "$choice" |