From 61ba5ab54ffd34a77ec4967487f69848d553fcc0 Mon Sep 17 00:00:00 2001 From: Florian Maurer Date: Mon, 2 Sep 2024 11:45:05 +0200 Subject: [PATCH] ffac-mt7915e-hotfix: silence stderr from ls command in cron (#134) This occurs on devices without an mt76 phy --- 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 9890cb3c..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 > /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?