blob: 51b8e1d37753af3bed1719547aebbc2e1cb9d9f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
choice="$(
cat <<EOF | commander -c -w 1 -y 5
poweroff
suspend
reboot
firmware
hibernate
EOF
)"
[ "$choice" = "firmware" ] && systemctl reboot --firmware-setup
[ "$choice" ] && systemctl "$choice"
|