netz39-infra-ansible/files/platon/unstuck.sh

14 lines
205 B
Bash
Raw Normal View History

#!/bin/bash
logger -t unstuck "unstuck $(date)"
killall tmux
gpio mode 2 output
gpio mode 3 output
gpio write 2 0
gpio write 3 0
sudo modprobe -r i2c_dev
sudo modprobe -r i2c_bcm2708
sleep 1
~/reboot.sh