mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
rockchip: improver usb wifi detect for Ryan
This commit is contained in:
parent
7af03c8483
commit
038ab6255d
10
target/linux/rockchip/armv8/base-files/etc/hotplug.d/usb/15-usb-wifi-config
Executable file
10
target/linux/rockchip/armv8/base-files/etc/hotplug.d/usb/15-usb-wifi-config
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "${ACTION}" = "add" ]; then
|
||||||
|
sleep 5
|
||||||
|
[ -n "$(cat /proc/net/wireless | grep wlan)" ] && wifi config && wifi
|
||||||
|
fi
|
||||||
|
if [ "${ACTION}" = "remove" ]; then
|
||||||
|
sleep 5
|
||||||
|
[ -z "$(cat /proc/net/wireless | grep wlan)" ] && rm /etc/config/wireless
|
||||||
|
fi
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
sleep 10
|
|
||||||
[ -n "$(cat /proc/net/wireless | grep wlan)" ] && wifi config && wifi
|
|
Loading…
Reference in New Issue
Block a user