From fa285a9cd40b1d282bafb84edd4afc370d93a181 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 13 Jun 2017 15:04:37 +0200 Subject: [PATCH] wifi: customize /etc/wpa_supplicant.conf Signed-off-by: Thomas Klaehn --- .../wpa-supplicant/files/wpa_supplicant.conf | 17 +++++++++++++++++ .../wpa-supplicant/wpa-supplicant_2.6.bbappend | 6 ++++++ 2 files changed, 23 insertions(+) create mode 100644 recipes-connectivity/wpa-supplicant/files/wpa_supplicant.conf create mode 100644 recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bbappend diff --git a/recipes-connectivity/wpa-supplicant/files/wpa_supplicant.conf b/recipes-connectivity/wpa-supplicant/files/wpa_supplicant.conf new file mode 100644 index 0000000..671c8a1 --- /dev/null +++ b/recipes-connectivity/wpa-supplicant/files/wpa_supplicant.conf @@ -0,0 +1,17 @@ +#create encrypted passphrase with: wpa_passphrase '' '' +country=DE +ctrl_interface=DIR=/var/run/wpa_supplicant +update_config=1 +network={ + ssid="FRITZ!Box 7330_EXT" + psk=6bee2296d336ab07a1aca9f210be55095896e740225d920c0d7f15906dc35846 + id_str="home_outdoor" + priority=1 +} +network={ + ssid="FRITZ!Box 7330" + psk=44df1640e42b8f4e4b424a39af700c817bc2b89f13c324d29c10bf7ba3028258 + id_str="home_indoor" + priority=2 +} + diff --git a/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bbappend b/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bbappend new file mode 100644 index 0000000..70bc231 --- /dev/null +++ b/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bbappend @@ -0,0 +1,6 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +do_install_append () { + install -m 0644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir}/wpa_supplicant.conf +} +