From b57266b93d1357d6064bac00fed7373bd1ee5e63 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sun, 22 Oct 2023 18:24:51 +0200 Subject: [PATCH] Revert "v2.5.0" This reverts commit 7af71b6eb69f48713fbf9415fa342402a1b47090. --- builder/data/usr/bin/pwnlib | 7 ++++++- builder/pwnagotchi.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/builder/data/usr/bin/pwnlib b/builder/data/usr/bin/pwnlib index 3cc73927..b50fb07a 100755 --- a/builder/data/usr/bin/pwnlib +++ b/builder/data/usr/bin/pwnlib @@ -39,7 +39,12 @@ reload_brcm() { start_monitor_interface() { ifconfig wlan0 up iw dev wlan0 set power_save off - airmon-ng start wlan0 + airmon-ng check kill + 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 diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml index 68acd09e..09b01473 100644 --- a/builder/pwnagotchi.yml +++ b/builder/pwnagotchi.yml @@ -300,7 +300,7 @@ when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version) - name: install pwnagotchi wheel and dependencies - command: "pipx install /usr/local/src/pwnagotchi/dist/pwnagotchi-{{ pwnagotchi.version }}-py3-none-any.whl" + command: "pipx install /usr/local/src/pwnagotchi/dist/pwnagotchi*.whl" when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version) - name: remove pwnagotchi folder