mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 18:59:13 +08:00
ar71xx: mute script error in ar922x-led-fix script
This commit fixes following script error in syslog: cat: can't open '/sys/devices/platform/ehci-platform/usb1/1-1/1-1.2/1-1.2:1.4/ieee80211/phy*/name': No such file or directory sh: add: unknown operand sh: add: unknown operand Signed-off-by: Rosy Song <rosysong@rosinson.com> Signed-off-by: Petr Štetiar <ynezz@true.cz> [commit subject and message tweaks]
This commit is contained in:
parent
51216b4f83
commit
3b4c44aa8b
@ -12,6 +12,9 @@
|
||||
devdir=$(dirname $DEVPATH)
|
||||
devdir=$(dirname $devdir)
|
||||
phydir=/sys$devdir/ieee80211
|
||||
|
||||
[ -d $phydir ] || exit 0
|
||||
|
||||
phyname=$(cat $phydir/phy*/name)
|
||||
|
||||
[ -z $phyname -o $ACTION != "add" ] && exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user