summaryrefslogtreecommitdiff
path: root/bin/menuscripts/mpower
diff options
context:
space:
mode:
Diffstat (limited to 'bin/menuscripts/mpower')
-rwxr-xr-xbin/menuscripts/mpower9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower
index b4b8640..fb7249d 100755
--- a/bin/menuscripts/mpower
+++ b/bin/menuscripts/mpower
@@ -9,6 +9,15 @@ hibernate
EOF
)"
+if [ "$(hostname)" = "winter" ]; then
+ if [ "$choice" = "firmware" ]; then
+ systemctl reboot --firmware-setup
+ exit
+ fi
+ systemctl "$choice"
+ exit
+fi
+
case "$choice" in
"suspend") doas /usr/sbin/zzz ;;
"poweroff") doas /usr/sbin/poweroff ;;