blob: 8288c1a97af00c37b1b4ed7631db6d5f2d659c7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
printf '\x7\x0\x0\x0\x1\x0\x0\x0\x0\x0\x0\x0' | doas tee '/sys/firmware/efi/efivars/OsIndications-8be4df61-93ca-11d2-aa0d-00e098032b8c'
if [ "$(hostname)" = "spring" ]
then
if [ "$1" = "hibernate" ]
then
doas /usr/sbin/zzz -R
else
doas /usr/sbin/reboot
fi
else
if [ "$1" = "hibernate" ]
then
systemctl hibernate
else
reboot
fi
fi
|