Skip to content

Commit

Permalink
ffac-mt7915e-hotfix: silence stderr from ls command in cron (#134)
Browse files Browse the repository at this point in the history
This occurs on devices without an mt76 phy
  • Loading branch information
maurerle authored Sep 2, 2024
1 parent af58aa7 commit 61ba5ab
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 > /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 61ba5ab

Please sign in to comment.