Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-09 21:08:32 +01:00
parent d364314dfa
commit 1b40010b3f
5 changed files with 8 additions and 14 deletions

View File

@ -34,6 +34,7 @@ langs:
./scripts/language.sh compile $$(basename $$lang); \ ./scripts/language.sh compile $$(basename $$lang); \
done done
image:
PACKER := /tmp/pwnagotchi/packer PACKER := /tmp/pwnagotchi/packer
PACKER_URL := https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_$(GOARCH).zip PACKER_URL := https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_$(GOARCH).zip
$(PACKER): $(PACKER):
@ -55,16 +56,7 @@ $(PWN_RELEASE).img: $(SDIST) builder/pwnagotchi.json.pkr.hcl builder/raspberrypi
cd builder && packer init pwnagotchi.json.pkr.hcl && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json.pkr.hcl cd builder && packer init pwnagotchi.json.pkr.hcl && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json.pkr.hcl
# If any of these files are updated, rebuild the checksums.
$(PWN_RELEASE).sha256: $(PWN_RELEASE).img
sha256sum $^ > $@
# If any of the input files are updated, rebuild the archive.
$(PWN_RELEASE).zip: $(PWN_RELEASE).img $(PWN_RELEASE).sha256
zip $(PWN_RELEASE).zip $^
.PHONY: image .PHONY: image
image: $(PWN_RELEASE).zip
clean: clean:
- python3 setup.py clean --all - python3 setup.py clean --all

View File

@ -41,13 +41,18 @@ reload_brcm() {
start_monitor_interface() { start_monitor_interface() {
rfkill unblock all rfkill unblock all
ifconfig wlan0 up ifconfig wlan0 up
sleep 3
iw dev wlan0 set power_save off iw dev wlan0 set power_save off
airmon-ng start wlan0 iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add wlan0mon type monitor
sleep 2
rfkill unblock all
ifconfig wlan0 down
ifconfig wlan0mon up
} }
# stops mon0 # stops mon0
stop_monitor_interface() { stop_monitor_interface() {
airmon-ng stop wlan0mon ifconfig wlan0mon down && iw dev wlan0mon del
reload_brcm reload_brcm
ifconfig wlan0 up ifconfig wlan0 up
} }

View File

@ -74,7 +74,6 @@
- triggerhappy - triggerhappy
- wpasupplicant - wpasupplicant
install: install:
- aircrack-ng
- autoconf - autoconf
- bc - bc
- bison - bison

View File

@ -113,7 +113,6 @@
- triggerhappy - triggerhappy
- wpasupplicant - wpasupplicant
install: install:
- aircrack-ng
- autoconf - autoconf
- bc - bc
- bison - bison

View File

@ -70,7 +70,6 @@
- triggerhappy - triggerhappy
- wpasupplicant - wpasupplicant
install: install:
- aircrack-ng
- autoconf - autoconf
- bc - bc
- bison - bison