Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-05 11:14:02 +01:00
parent ae191a3cbc
commit c8331574de
2 changed files with 12 additions and 5 deletions

View File

@ -10,7 +10,7 @@
executable: /bin/bash executable: /bin/bash
chdir: /usr/local/src/nexmon/ chdir: /usr/local/src/nexmon/
- name: make firmware patch - name: "make firmware patch ({{ item.patch }})"
shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/{{ item.patch }}/nexmon/ && make" shell: "source ./setup_env.sh && cd /usr/local/src/nexmon/patches/{{ item.patch }}/nexmon/ && make"
args: args:
executable: /bin/bash executable: /bin/bash
@ -19,7 +19,7 @@
QEMU_UNAME: "{{ item.kernel }}" QEMU_UNAME: "{{ item.kernel }}"
ARCHFLAGS: "{{ item.arch_flags }}" ARCHFLAGS: "{{ item.arch_flags }}"
- name: install new firmware (bcm43455c0) - name: install new firmware
copy: copy:
src: "/usr/local/src/nexmon/patches/{{ item.patch }}/nexmon/{{ item.firmware }}" src: "/usr/local/src/nexmon/patches/{{ item.patch }}/nexmon/{{ item.firmware }}"
dest: "/usr/lib/firmware/brcm/{{ item.firmware }}" dest: "/usr/lib/firmware/brcm/{{ item.firmware }}"
@ -37,4 +37,4 @@
dest: "/usr/lib/modules/{{ item.kernel }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko" dest: "/usr/lib/modules/{{ item.kernel }}/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko"
- name : load brcmfmac drivers - name : load brcmfmac drivers
command: "/sbin/depmod -a {{ item.kernel}}" command: "/sbin/depmod -a {{ item.kernel }}"

View File

@ -396,13 +396,20 @@
register: pwngrid register: pwngrid
- name: install pwngrid 1.10.4 - name: install pwngrid 1.10.4
shell: "export GOPATH=$HOME/go && export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin && make && make install" shell: "export GOPATH=$HOME/go && export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin && make "
retries: 7
delay: 60
args:
executable: /bin/bash
chdir: /usr/local/src/pwngrid
- name: install pwngrid 1.10.4
shell: "export GOPATH=$HOME/go && export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin && make install"
retries: 7 retries: 7
delay: 60 delay: 60
args: args:
executable: /bin/bash executable: /bin/bash
chdir: /usr/local/src/pwngrid chdir: /usr/local/src/pwngrid
when: pwngrid.changed
- name: remove pwngrid folder - name: remove pwngrid folder
file: file: