diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-02-27 15:55:01 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-02-27 15:55:01 +0100 |
commit | 2b1e81af5435011175756a3d2a4957c6845add60 (patch) | |
tree | 161de97e2e2b6af511f26192b1ea18919697d39a /bin/extra | |
parent | 6011657bb01895a33751e4a38b371ca3e7381242 (diff) | |
parent | 46b968bbe1e3b308b50a4f16ea365a64a5bf6e3a (diff) |
Merge branch 'main' of autumn:dotfiles
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 |