mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:16:16 +02:00
[package] hostapd,wpa_supplicant: create control interfaces for hostapd_cli and wpa_cli
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14039 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c857d0f9d5
commit
598f085368
@ -85,6 +85,7 @@ hostapd_setup_vif() {
|
||||
;;
|
||||
esac
|
||||
cat > /var/run/hostapd-$ifname.conf <<EOF
|
||||
ctrl_interface=/var/run/hostapd-$ifname
|
||||
driver=$driver
|
||||
interface=$ifname
|
||||
hw_mode=${hwmode:-g}
|
||||
|
@ -58,6 +58,7 @@ wpa_supplicant_setup_vif() {
|
||||
config_get bridge "$vif" bridge
|
||||
config_get ssid "$vif" ssid
|
||||
cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
|
||||
ctrl_interface=/var/run/wpa_supplicant-$ifname
|
||||
network={
|
||||
scan_ssid=1
|
||||
ssid="$ssid"
|
||||
|
Loading…
Reference in New Issue
Block a user