mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
bring wlan0 down so mon0 can come up after creating mon0
This commit is contained in:
@ -33,7 +33,9 @@ reload_brcm() {
|
||||
|
||||
# starts mon0
|
||||
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
|
||||
|
Reference in New Issue
Block a user