diff options
author | hamelg <hamelg@laposte.net> | 2011-06-06 08:07:56 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-06 08:08:43 +0200 |
commit | 2283c352ac2cc829ffc8c75e12c335369f94acde (patch) | |
tree | c3f8a4a48e919f3b2ca9754e1d6b77bcbb851e8c /src/8021x | |
parent | 9f1c0a2725d55d05a506427d4c253efbf4738e71 (diff) | |
download | netctl-2283c352ac2cc829ffc8c75e12c335369f94acde.tar.gz netctl-2283c352ac2cc829ffc8c75e12c335369f94acde.tar.xz |
Add support for ad-hoc Wi-Fi (FS#19683)
Diffstat (limited to 'src/8021x')
-rw-r--r-- | src/8021x | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -59,6 +59,7 @@ make_wpa_config_file() { echo "ctrl_interface=/var/run/wpa_supplicant" >> "$WPA_CONF/wpa.conf" # we know $WPA_CONF now has no spaces, but it may have other nasty chars, so still needs to be quoted echo "ctrl_interface_group=${WPA_GROUP:-wheel}" >> "$WPA_CONF/wpa.conf" [[ $WPA_COUNTRY ]] && echo "country=$WPA_COUNTRY" >> "$WPA_CONF/wpa.conf" + [[ -n "$ADHOC" ]] && echo "ap_scan=2" >> "$WPA_CONF/wpa.conf" echo "$WPA_CONF/wpa.conf" } @@ -70,6 +71,7 @@ make_wpa_config() { if [[ -n "$AP" ]]; then echo "bssid=$AP" fi + [[ -n "$ADHOC" ]] && echo "mode=1" ;; wpa-configsection) echo "$CONFIGSECTION" |