bring wlan0 down so mon0 can come up after creating mon0

This commit is contained in:
Sniffleupagus
2023-06-13 13:48:14 -07:00
parent fc2341b04c
commit 28d8e8a2c8

View File

@ -33,7 +33,9 @@ reload_brcm() {
# starts mon0 # starts mon0
start_monitor_interface() { start_monitor_interface() {
iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor && ifconfig mon0 up iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor
ifconfig wlan0 down
ifconfig mon0 up
} }
# stops mon0 # stops mon0