diff options
Diffstat (limited to 'bin/menuscripts/mpower')
-rwxr-xr-x | bin/menuscripts/mpower | 9 |
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 ;; |