SpectreOS/scripts/hardreset.sh

18 lines
258 B
Bash
Raw Normal View History

2022-10-04 19:01:31 +02:00
#!/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