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:
Liangbin Lian 2026-03-05 19:21:13 +08:00
parent 96783b7f10
commit 7fbd05bcdf
2 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -0,0 +1,8 @@
#!/bin/sh
[ "${ACTION}" = "add" ] && {
[ -f /tmp/.wifi-up ] && exit 0
touch /tmp/.wifi-up
/sbin/wifi isup || /sbin/wifi up
}