Skip to content

Commit

Permalink
Update ffac-mt7915-hotfix/files/lib/gluon/mt7915/reboot-on-error.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Grische <[email protected]>
  • Loading branch information
maurerle and grische authored Sep 2, 2024
1 parent 0db5b86 commit f20351d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
if ls /sys/kernel/debug/ieee80211/phy*/mt76/rf_regval 2>&1 > /dev/null && ! cat /sys/kernel/debug/ieee80211/phy*/mt76/rf_regval > /dev/null; then
if ls /sys/kernel/debug/ieee80211/phy*/mt76/rf_regval > /dev/null 2>&1 && ! cat /sys/kernel/debug/ieee80211/phy*/mt76/rf_regval > /dev/null; then
logger -s -t "ffac-mt7915-hotfix" -p err "wifi firmware crashed, scheduled reboot in 5 seconds"
sleep 5
# Autoupdate?
Expand Down

0 comments on commit f20351d

Please sign in to comment.