mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
2
Makefile
2
Makefile
@ -55,7 +55,7 @@ $(PWN_RELEASE).img: $(SDIST) builder/pwnagotchi.json builder/pwnagotchi.yml $(sh
|
|||||||
sudo $(PACKER) plugins install github.com/solo-io/arm-image
|
sudo $(PACKER) plugins install github.com/solo-io/arm-image
|
||||||
cd builder && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json
|
cd builder && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json
|
||||||
sudo chown -R $$USER:$$USER builder/images
|
sudo chown -R $$USER:$$USER builder/images
|
||||||
mv builder/images /home/$$USER
|
mv builder/images ../../../../
|
||||||
|
|
||||||
# If any of these files are updated, rebuild the checksums.
|
# If any of these files are updated, rebuild the checksums.
|
||||||
$(PWN_RELEASE).sha256: $(PWN_RELEASE).img
|
$(PWN_RELEASE).sha256: $(PWN_RELEASE).img
|
||||||
|
@ -105,7 +105,8 @@
|
|||||||
"inline": [
|
"inline": [
|
||||||
"apt-get -y --allow-releaseinfo-change update",
|
"apt-get -y --allow-releaseinfo-change update",
|
||||||
"apt-get -y dist-upgrade",
|
"apt-get -y dist-upgrade",
|
||||||
"apt-get install -y ansible"
|
"apt-get install -y ansible",
|
||||||
|
"ansible-galaxy collection install community.general"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -358,10 +358,11 @@
|
|||||||
/sbin/depmod -a
|
/sbin/depmod -a
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
- name: make /etc/rc.local executable
|
- name: Add the brcmfmac module
|
||||||
file:
|
community.general.modprobe:
|
||||||
path: "/etc/rc.local"
|
name: brcmfmac
|
||||||
mode: 0755
|
state: present
|
||||||
|
persistent: present
|
||||||
|
|
||||||
# To shrink the final image, remove the nexmon directory (takes 2.5G of space) post build and installation
|
# To shrink the final image, remove the nexmon directory (takes 2.5G of space) post build and installation
|
||||||
- name: Delete nexmon content & directory
|
- name: Delete nexmon content & directory
|
||||||
@ -659,7 +660,9 @@
|
|||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "/etc/ssh/ssh_host*_key*"
|
- "/etc/ssh/ssh_host*_key*"
|
||||||
|
community:
|
||||||
|
general:
|
||||||
|
modprobe:
|
||||||
handlers:
|
handlers:
|
||||||
- name: reload systemd services
|
- name: reload systemd services
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Reference in New Issue
Block a user