mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
support secondary (or more) wlan interfaces
patch installer.sh with /etc/sudoer commands that support wlan1 - wlan9.
This commit is contained in:
parent
2649991675
commit
2805e6eb6d
@ -223,15 +223,11 @@ function patch_system_files() {
|
||||
"/sbin/ifdown"
|
||||
"/sbin/ifup"
|
||||
"/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf"
|
||||
"/bin/cat /etc/wpa_supplicant/wpa_supplicant-wlan0.conf"
|
||||
"/bin/cat /etc/wpa_supplicant/wpa_supplicant-wlan1.conf"
|
||||
"/bin/cat /etc/wpa_supplicant/wpa_supplicant-wlan[0-9].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-wlan1.conf"
|
||||
"/sbin/wpa_cli -i wlan0 scan_results"
|
||||
"/sbin/wpa_cli -i wlan0 scan"
|
||||
"/sbin/wpa_cli -i wlan1 scan_results"
|
||||
"/sbin/wpa_cli -i wlan1 scan"
|
||||
"/bin/cp /tmp/wifidata /etc/wpa_supplicant/wpa_supplicant-wlan[0-9].conf"
|
||||
"/sbin/wpa_cli -i wlan[0-9] scan_results"
|
||||
"/sbin/wpa_cli -i wlan[0-9] scan"
|
||||
"/sbin/wpa_cli reconfigure"
|
||||
"/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf"
|
||||
"/etc/init.d/hostapd start"
|
||||
@ -241,12 +237,9 @@ function patch_system_files() {
|
||||
"/bin/cp /tmp/dhcpddata /etc/dnsmasq.conf"
|
||||
"/sbin/shutdown -h now"
|
||||
"/sbin/reboot"
|
||||
"/sbin/ip link set wlan0 down"
|
||||
"/sbin/ip link set wlan0 up"
|
||||
"/sbin/ip -s a f label wlan0"
|
||||
"/sbin/ip link set wlan1 down"
|
||||
"/sbin/ip link set wlan1 up"
|
||||
"/sbin/ip -s a f label wlan1"
|
||||
"/sbin/ip link set wlan[0-9] down"
|
||||
"/sbin/ip link set wlan[0-9] up"
|
||||
"/sbin/ip -s a f label wlan[0-9]"
|
||||
"/bin/cp /etc/raspap/networking/dhcpcd.conf /etc/dhcpcd.conf"
|
||||
"/etc/raspap/hostapd/enablelog.sh"
|
||||
"/etc/raspap/hostapd/disablelog.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user