package/wifi-scripts: call wifi up once on boot
workaround for some drivers (like brcmfmac) take long time to load fw Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
parent
96783b7f10
commit
7fbd05bcdf
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=wifi-scripts
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "${ACTION}" = "add" ] && {
|
||||
[ -f /tmp/.wifi-up ] && exit 0
|
||||
touch /tmp/.wifi-up
|
||||
|
||||
/sbin/wifi isup || /sbin/wifi up
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user