summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-27 22:50:50 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-27 22:50:50 +0100
commit066db981ba91d232bead8a4543d7647465197ded (patch)
tree64f4b092462fad5c92c6e8dbfa3f18cfa4460e38
parent1e1b7fed63b806c2788baa4ca6c4244b7544006a (diff)
fix commander
-rwxr-xr-xbin/menuscripts/mpower4
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"