netifd: check if /sbin/wifi exists before calling it
authorAndris PE <neandris@gmail.com>
Tue, 26 Mar 2024 19:53:06 +0000 (21:53 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 10 Dec 2024 00:22:05 +0000 (01:22 +0100)
commit28de3ffefa54527831d932cabc9bdcca8adf94e2
treec7939fac4cf6c436b681fdb981b3353aeb05c89e
parent6c664135f982f5b03b4d51c1ee45fe357a06ac27
netifd: check if /sbin/wifi exists before calling it

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>
(cherry picked from commit 207bfee855320dc938f39e179b1d2e3b008140cb)
package/network/config/netifd/Makefile
package/network/config/netifd/files/etc/init.d/network