diff options
author | Phil Sutter <phil@nwl.cc> | 2015-07-26 01:42:22 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-07-26 10:36:36 +0200 |
commit | 16a4e901202ee8d8da31c293f8f83141dbab0a34 (patch) | |
tree | 897930b44626fed5f3b333cd572cce7c9a2042ec /package/base-files/src | |
parent | c3b44cf4fa4ff91522ba9cfb58669003de1808c2 (diff) |
package/base-files: wireless: support appending to hostapd.conf
This is useful for adding additional (virtual) access points. In my
setup, /etc/hostapd.conf.post contains:
| bss=ath6
| ssid=IPv6XS4all
In /etc/network/interfaces, there is a standard entry for ath6 which
defines the IP address.
Maybe this could be implemented in a cleaner way by introducing a
'wireless-master' setting which points to the real wireless interface
(wlan0 in my case), so ifup knows which hostapd.conf file to add the
settings to.
Diffstat (limited to 'package/base-files/src')
-rwxr-xr-x | package/base-files/src/etc/network/if-pre-up.d/04-wireless | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/src/etc/network/if-pre-up.d/04-wireless b/package/base-files/src/etc/network/if-pre-up.d/04-wireless index f34e61e2b..e7f83a76e 100755 --- a/package/base-files/src/etc/network/if-pre-up.d/04-wireless +++ b/package/base-files/src/etc/network/if-pre-up.d/04-wireless @@ -78,6 +78,8 @@ case "$IF_WIRELESS_MODE" in echo "rsn_pairwise=CCMP" >> /tmp/hostapd.conf echo "wpa_passphrase=$IF_WIRELESS_PASSPHRASE" >> /tmp/hostapd.conf } + [ -f /etc/hostapd.conf.post ] && \ + cat /etc/hostapd.conf.post >> /tmp/hostapd.conf ;; sta) ip link set up dev ${IFACE} |