initial commit of bin scripts into git

This commit is contained in:
2023-11-08 13:38:19 +11:00
commit 3735eea3c6
113 changed files with 11631 additions and 0 deletions

14
nw-restarter.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
LOG=/tmp/nw-restarted
while [ 1 ] ; do
ping -c 1 192.168.0.250 > /dev/null
ret=$?
if [ $ret != 0 ]; then
date >> $LOG
sudo rmmod rtl8187; sleep 1; sudo modprobe rtl8187 >> $LOG
else
echo "still good at `date`" >> $LOG
fi
sleep 60
done