1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Merge pull request #1 from randyoo/randyoo-wlan1

support secondary (or more) wlan interfaces
This commit is contained in:
randyoo 2018-07-06 11:10:41 -06:00 committed by GitHub
commit ecfac9464f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,15 +223,11 @@ function patch_system_files() {
"/sbin/ifdown" "/sbin/ifdown"
"/sbin/ifup" "/sbin/ifup"
"/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf" "/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf"
"/bin/cat /etc/wpa_supplicant/wpa_supplicant-wlan0.conf" "/bin/cat /etc/wpa_supplicant/wpa_supplicant-wlan[0-9].conf"
"/bin/cat /etc/wpa_supplicant/wpa_supplicant-wlan1.conf"
"/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant.conf" "/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant.conf"
"/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant-wlan0.conf" "/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant-wlan[0-9].conf"
"/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant-wlan1.conf" "/sbin/wpa_cli -i wlan[0-9] scan_results"
"/sbin/wpa_cli -i wlan0 scan_results" "/sbin/wpa_cli -i wlan[0-9] scan"
"/sbin/wpa_cli -i wlan0 scan"
"/sbin/wpa_cli -i wlan1 scan_results"
"/sbin/wpa_cli -i wlan1 scan"
"/sbin/wpa_cli reconfigure" "/sbin/wpa_cli reconfigure"
"/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf" "/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf"
"/etc/init.d/hostapd start" "/etc/init.d/hostapd start"
@ -241,12 +237,9 @@ function patch_system_files() {
"/bin/cp /tmp/dhcpddata /etc/dnsmasq.conf" "/bin/cp /tmp/dhcpddata /etc/dnsmasq.conf"
"/sbin/shutdown -h now" "/sbin/shutdown -h now"
"/sbin/reboot" "/sbin/reboot"
"/sbin/ip link set wlan0 down" "/sbin/ip link set wlan[0-9] down"
"/sbin/ip link set wlan0 up" "/sbin/ip link set wlan[0-9] up"
"/sbin/ip -s a f label wlan0" "/sbin/ip -s a f label wlan[0-9]"
"/sbin/ip link set wlan1 down"
"/sbin/ip link set wlan1 up"
"/sbin/ip -s a f label wlan1"
"/bin/cp /etc/raspap/networking/dhcpcd.conf /etc/dhcpcd.conf" "/bin/cp /etc/raspap/networking/dhcpcd.conf /etc/dhcpcd.conf"
"/etc/raspap/hostapd/enablelog.sh" "/etc/raspap/hostapd/enablelog.sh"
"/etc/raspap/hostapd/disablelog.sh" "/etc/raspap/hostapd/disablelog.sh"