Files
ansible-shared/server/files/bin/poweroff-force

9 lines
226 B
Bash

#!/bin/bash
# This is an instant reboot, like pressing the power switch
# only use if you cannot reboot the computer from the normal command
# mReschke 2014-03-24
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger