diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-21 23:05:03 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-21 23:05:03 +0100 |
commit | a5d21a49ccdc6141790085d4bd26b667b8d5618d (patch) | |
tree | c952cf834458da4938dfca837abe6323283d2bb8 /bin/menuscripts/mpower | |
parent | efcd2b7cdb03a354bd4311bac75953738ec34e4f (diff) |
checkpoint
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 ;; |