diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-02-01 14:48:40 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-02-01 14:48:40 +0100 |
commit | 9143bd23b1000e950274740c8bd3f973aeba5b9e (patch) | |
tree | 5440993233c0182f0e294c269b416ab9ee25dcc0 /bin/extra | |
parent | a3ea2d173b486ef2460e28108462c997fba90cc2 (diff) |
checkpoint
Diffstat (limited to 'bin/extra')
-rwxr-xr-x | bin/extra/rebootfw | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/extra/rebootfw b/bin/extra/rebootfw new file mode 100755 index 0000000..53c6c00 --- /dev/null +++ b/bin/extra/rebootfw @@ -0,0 +1,11 @@ +#!/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 + doas /usr/sbin/reboot +else + reboot +fi |