diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-10-05 11:05:08 -0500 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-10-06 12:38:59 -0500 |
commit | d4507e62316fd52811181185212bee952db76804 (patch) | |
tree | 6ecaf4891a1f7f0e018e599eb92705bea754fd68 /package | |
parent | a32fbb1de4c0bb0a68b3c54240bc711353b0fd17 (diff) |
add basic support to preconfigure wpa2
Diffstat (limited to 'package')
-rw-r--r-- | package/base-files/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 5ce14b176..0ca11d180 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -110,6 +110,12 @@ 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 +endif endif ifeq (${ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC},y) printf "\nauto wlan0\niface wlan0 inet static\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces |