summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-12-28 11:06:36 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2014-12-28 11:06:36 -0600
commit6488ae4a7b82ac7c95adc34281459c373fba6be3 (patch)
tree88176b32a0fc0dfa5764403b08daf8e53aa70644 /package
parent153efcc126222b5bf80e279a411781f9689e20d6 (diff)
fix wpa2 configfile generation, when static network configuration is used
Diffstat (limited to 'package')
-rw-r--r--package/base-files/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 574c13067..ef6aca5bc 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -111,14 +111,20 @@ endif
ifeq (${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP},y)
printf "\nauto wlan0\niface wlan0 inet dhcp\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
ifeq (${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2},y)
- printf "\twireless-mode sta\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
- printf "\twireless-ssid ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID}\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
- printf "\twireless-security wpa2\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
- printf "\twireless-passphrase ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW}\n\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ printf " wireless-mode sta\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ printf " wireless-ssid ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID}\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ printf " wireless-security wpa2\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ printf " wireless-passphrase ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW}\n\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
endif
endif
ifeq (${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC},y)
printf "\nauto wlan0\niface wlan0 inet static\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ifeq (${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2},y)
+ printf " wireless-mode sta\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ printf " wireless-ssid ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID}\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ printf " wireless-security wpa2\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+ printf " wireless-passphrase ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW}\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
+endif
printf " address ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP}\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
printf " netmask ${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM}\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces
printf " broadcast +\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces