SpectreOS/scripts/hardreset.sh
2022-10-04 19:01:31 +02:00

17 lines
258 B
Bash
Executable file

#!/usr/bin/env bash
set -ex
umount -a
mount -f / -o remount,ro
echo "System schaltet sich gleich SOFORT!!! aus in"
echo "3"
sleep 1
echo "2"
sleep 1
echo "1"
sleep1
echo s >| /proc/sysrq-trigger
echo u >| /proc/sysrq-trigger
echo b >| /proc/sysrq-trigger