Avoid harmless error from network script by checking presence of
now-optional wifi support script, most notably confusing users of x86
snapshots.
Fixes: #14964
Signed-off-by: Andris PE <neandris@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/14986
Signed-off-by: Robert Marko <robimarko@gmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=netifd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/netifd.git
init_switch
ubus call network reload || rv=1
- /sbin/wifi reload_legacy
+ [ -x /sbin/wifi ] && /sbin/wifi reload_legacy
return $rv
}
stop_service() {
- /sbin/wifi down
+ [ -x /sbin/wifi ] && /sbin/wifi down
ifdown -a
sleep 1
}