mirror of https://github.com/hak5/openwrt.git
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]openwrt-19.07
parent
51216b4f83
commit
3b4c44aa8b
|
@ -12,6 +12,9 @@
|
||||||
devdir=$(dirname $DEVPATH)
|
devdir=$(dirname $DEVPATH)
|
||||||
devdir=$(dirname $devdir)
|
devdir=$(dirname $devdir)
|
||||||
phydir=/sys$devdir/ieee80211
|
phydir=/sys$devdir/ieee80211
|
||||||
|
|
||||||
|
[ -d $phydir ] || exit 0
|
||||||
|
|
||||||
phyname=$(cat $phydir/phy*/name)
|
phyname=$(cat $phydir/phy*/name)
|
||||||
|
|
||||||
[ -z $phyname -o $ACTION != "add" ] && exit 0
|
[ -z $phyname -o $ACTION != "add" ] && exit 0
|
||||||
|
|
Loading…
Reference in New Issue