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

12
check-wlan0 Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
log=/var/log/mythtv/ddp.log
out=`ping -c2 192.168.0.250`
if [ $? != 0 ]; then
date=`date`
echo "$date: wlan0 seems to be down" >> $log
echo "$date: $out" >> $log
sudo rmmod rtl8187 ; sleep 1 ; sudo modprobe rtl8187 ; sleep 1; sudo ifup wlan0 >> $log
echo "$date: wlan0 restarted " >> $log
fi