We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1686b5 commit 7d8dc43Copy full SHA for 7d8dc43
wifi-watchdog.sh
@@ -1,16 +1,11 @@
1
#!/bin/sh
2
3
-#echo "begin watchdog" > /home/mirte/test.txt
4
-
5
-# echo "wifi watchdog service restarted" > /dev/kmsg
6
7
-# sub="xradio"
8
9
dmesg --follow | while read -r line; do
10
- if echo "$line" | grep -q "xradio WSM-ERR: CMD timeout!"; then
+ # OrangePi Zero 1: xradio WSM-ERR: CMD timeout!
+ # OrangePi Zero 2: WCN_ERR: dumpmem_rx_callback open
+ if echo "$line" | grep -qE "xradio WSM-ERR: CMD timeout!|WCN_ERR: dumpmem_rx_callback open"; then
11
echo "CRASH! REBOOT!" >/dev/kmsg
12
- echo "$line" >>./test.txt
13
- # reboot -f now
+ echo "$line" >> /home/mirte/wifi-watchdog.err
14
echo b >/proc/sysrq-trigger
15
fi
16
done
0 commit comments