b/package/network/services/hostapd/Makefile
@@ -533,7 +533,7 @@ endef
define Package/hostapd-common/install
$(INSTALL_DIR) $(1)/lib/netifd $(1)/etc/rc.button
$(1)/etc/hotplug.d/ieee80211 $(1)/etc/init.d
$(INSTALL_DATA) ./files/hostapd.sh $(1)/lib/netifd/hostapd.sh
- $(INSTALL_BIN) ./files/wpad.init $(1)/etc/init.d/wpad
+ $(INSTALL_BIN) ./files/hostapd.init $(1)/etc/init.d/hostapd
$(INSTALL_BIN) ./files/wps-hotplug.sh $(1)/etc/rc.button/wps
endef
b/package/network/services/hostapd/files/hostapd.init
similarity index 97%
rename from package/network/services/hostapd/files/wpad.init
rename to package/network/services/hostapd/files/hostapd.init
@@ -4,7 +4,7 @@ START=19
STOP=21
USE_PROCD=1
-NAME=wpad
+NAME=hostapd
start_service() {
if [ -x "/usr/sbin/hostapd" ]; then
When hostapd is launched as /etc/init.d/wpad it appears in a different location under "ubus call service list" presenting problems with scripts /lib/netifd/hostapd.sh and /lib/netifd/wireless/mac80211.sh Either these scripts need to be patched to recognise the move, or the init.d script needs to be renamed to hostapd. This patch renames the init.d script as unidentified things may also depend upon the placement of entries within ubus output. This ubus change only came about on the 8 April 2020 and it is unlikely that very much code has been written or re-written to support the renaming. Problem is manifested in log files as "/usr/sbin/wpad does not match process path (/proc/exe)" Signed-off-by: Michael T Farnworth <michael@turf.org>