summaryrefslogtreecommitdiff
path: root/bin/menuscripts
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-29 14:26:50 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-29 14:26:50 +0100
commitc16799693cb6d780f258833689a6d312506093bb (patch)
treef11e3ba72e632269160275f1c3c36d170fb81a62 /bin/menuscripts
parentda998b5c857aef8903bf791b4e41966cf230562c (diff)
parent8ab76a9ebf8414c720f13bd0aaaa2e6452ff753b (diff)
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'bin/menuscripts')
-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"