Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-29 08:45:32 +01:00
parent 0fc52feb0a
commit d1e6503b70
2 changed files with 2 additions and 7 deletions

View File

@ -45,7 +45,7 @@ slaac private
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# static IP configuration: # static IP configuration:
denyinterfaces wlan0 # denyinterfaces wlan0
interface eth0 interface eth0
static domain_name_servers=8.8.8.8 1.1.1.1 static domain_name_servers=8.8.8.8 1.1.1.1

View File

@ -40,12 +40,7 @@ start_monitor_interface() {
rfkill unblock all rfkill unblock all
ifconfig wlan0 up ifconfig wlan0 up
iw dev wlan0 set power_save off iw dev wlan0 set power_save off
airmon-ng check kill airmon-ng start wlan0
iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add wlan0mon type monitor && ifconfig wlan0mon up
# If wlan0 is NOT taken down after bringing up mon0, then when switching to AUTO you will get:
# error 400: error while initializing wlan0mon to channel 1: iw: out=command failed: Device or resource busy (-16) err=exit status 240
ifconfig wlan0 down
} }
# stops mon0 # stops mon0