From f20351d2fd4efbcf001569b5f3137e1e7feffd0c Mon Sep 17 00:00:00 2001 From: Florian Maurer Date: Mon, 2 Sep 2024 11:40:33 +0200 Subject: [PATCH] Update ffac-mt7915-hotfix/files/lib/gluon/mt7915/reboot-on-error.sh Co-authored-by: Grische <2787581+grische@users.noreply.github.com> --- ffac-mt7915-hotfix/files/lib/gluon/mt7915/reboot-on-error.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffac-mt7915-hotfix/files/lib/gluon/mt7915/reboot-on-error.sh b/ffac-mt7915-hotfix/files/lib/gluon/mt7915/reboot-on-error.sh index 13dd71eb..c141f520 100755 --- a/ffac-mt7915-hotfix/files/lib/gluon/mt7915/reboot-on-error.sh +++ b/ffac-mt7915-hotfix/files/lib/gluon/mt7915/reboot-on-error.sh @@ -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?