hostapd: default hostapd.conf on target
Hello,
I'm wondering if there's a reason default/example hostapd.conf is not installed on target? IMHO it would be pretty convenient to have that config as a starting point. Otherwise user has to create it manually from scratch.
Technically this is just a matter of:
------------------------>8-------------------------
package/hostapd/hostapd.mk +0 -0
@@ -85,7 +85,9 @@ define HOSTAPD_INSTALL_TARGET_CMDS
????????$(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd \
????????????????$(TARGET_DIR)/usr/sbin/hostapd ????????$(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd_cli \
-???????????????$(TARGET_DIR)/usr/bin/hostapd_cli +???????????????$(TARGET_DIR)/usr/bin/hostapd_cli \
+???????$(INSTALL) -m 0644 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd/hostapd.conf \
+???????????????$(TARGET_DIR)/etc/hostapd.conf
?endef
?
?$(eval $(generic-package)) ------------------------>8-------------------------
If there's no real reason to not have this I'll send a patch happily.
-Alexey
Hello,
Quoted 14 lines · Alexey Brodkin
I'm wondering if there's a reason default/example hostapd.conf is not installed on target? IMHO it would be pretty convenient to have that config as a starting point. Otherwise user has to create it manually from scratch.
Technically this is just a matter of:
------------------------>8-------------------------package/hostapd/hostapd.mk +0
-0@@ -85,7 +85,9 @@ define HOSTAPD_INSTALL_TARGET_CMDS ????????$(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd \????????????????$(TARGET_DIR)/usr/sbin/hostapd ????????$(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd_cli \
Quoted 8 lines
-???????????????$(TARGET_DIR)/usr/bin/hostapd_cli +???????????????$(TARGET_DIR)/usr/bin/hostapd_cli \
+???????$(INSTALL) -m 0644 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd/hostapd.conf \
+???????????????$(TARGET_DIR)/etc/hostapd.conf
?endef
?
?$(eval $(generic-package)) ------------------------>8-------------------------
Thanks for your proposal, looks good to me. Gustavo, what do you think?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com