]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
wpa_supplicant: install basic configuration file
authorYegor Yefremov <yegorslists@googlemail.com>
Sun, 22 Apr 2012 20:55:54 +0000 (20:55 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 9 May 2012 20:35:28 +0000 (22:35 +0200)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/wpa_supplicant/wpa_supplicant.conf [new file with mode: 0755]
package/wpa_supplicant/wpa_supplicant.mk

diff --git a/package/wpa_supplicant/wpa_supplicant.conf b/package/wpa_supplicant/wpa_supplicant.conf
new file mode 100755 (executable)
index 0000000..1994a6c
--- /dev/null
@@ -0,0 +1,6 @@
+ctrl_interface=/var/run/wpa_supplicant
+ap_scan=1
+
+network={
+  key_mgmt=NONE
+}
index 0a672eee2844034e32827fca29fda85e75a91abd..4a1baeaaafbb05eb21122742eb221d72a46f670d 100644 (file)
@@ -118,10 +118,18 @@ ifeq ($(BR2_PACKAGE_DBUS),y)
 WPA_SUPPLICANT_POST_INSTALL_TARGET_HOOKS += WPA_SUPPLICANT_INSTALL_DBUS
 endif
 
+define WPA_SUPPLICANT_INSTALL_CONFIG
+       $(INSTALL) -m 644 \
+         package/wpa_supplicant/wpa_supplicant.conf  $(TARGET_DIR)/etc/wpa_supplicant.conf
+endef
+
+WPA_SUPPLICANT_POST_INSTALL_TARGET_HOOKS += WPA_SUPPLICANT_INSTALL_CONFIG
+
 define WPA_SUPPLICANT_UNINSTALL_TARGET_CMDS
        rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(WPA_SUPPLICANT_TARGET_BINS))
        rm -f $(TARGET_DIR)/etc/dbus-1/system.d/wpa_supplicant.conf
        rm -f $(TARGET_DIR)/usr/share/dbus-1/system-services/$(WPA_SUPPLICANT_DBUS_SERVICE).service
+       rm -f $(TARGET_DIR)/usr/etc/wpa_supplicant.conf
 endef
 
 $(eval $(call AUTOTARGETS))