From 16a4e901202ee8d8da31c293f8f83141dbab0a34 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sun, 26 Jul 2015 01:42:22 +0200 Subject: 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. --- package/base-files/src/etc/network/if-pre-up.d/04-wireless | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/base-files/src') 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} -- cgit v1.2.3