diff options
Diffstat (limited to 'bin/menuscripts/mpower')
-rwxr-xr-x | bin/menuscripts/mpower | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index 00fb96c..1543a0b 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -1,8 +1,11 @@ #!/bin/sh -choice="$(printf 'poweroff +choice="$( +cat <<EOF | commander -c +poweroff suspend hibernate reboot -' | commander -c)" +EOF +)" [ "$choice" ] && systemctl "$choice" |