summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2012-04-22 20:55:54 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-05-09 22:35:28 +0200
commited3fb173be263e52ef559212f2df465d08405a30 (patch)
tree69152fd976665afc1158656d728fd0e228b9de23 /package
parent67202463b0720d679402c292cefba263da5d6df7 (diff)
downloadbuildroot-novena-ed3fb173be263e52ef559212f2df465d08405a30.tar.gz
buildroot-novena-ed3fb173be263e52ef559212f2df465d08405a30.zip
wpa_supplicant: install basic configuration file
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rwxr-xr-xpackage/wpa_supplicant/wpa_supplicant.conf6
-rw-r--r--package/wpa_supplicant/wpa_supplicant.mk8
2 files changed, 14 insertions, 0 deletions
diff --git a/package/wpa_supplicant/wpa_supplicant.conf b/package/wpa_supplicant/wpa_supplicant.conf
new file mode 100755
index 000000000..1994a6c73
--- /dev/null
+++ b/package/wpa_supplicant/wpa_supplicant.conf
@@ -0,0 +1,6 @@
+ctrl_interface=/var/run/wpa_supplicant
+ap_scan=1
+
+network={
+ key_mgmt=NONE
+}
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 0a672eee2..4a1baeaaa 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -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))