Merge branch 'pwnagotchi-torch-testing' into pwnagotchi-torch-64

This commit is contained in:
Jeroen Oudshoorn
2023-10-03 12:47:23 +02:00
5 changed files with 21 additions and 6 deletions

View File

@ -79,12 +79,12 @@ is_auto_mode() {
# if usb0 is up, we're in MANU
if is_interface_up usb0; then
return 0
return 1
fi
# if eth0 is up (for other boards), we're in MANU
if is_interface_up eth0; then
return 0
return 1
fi
# no override, but none of the interfaces is up -> AUTO

View File

@ -58,7 +58,6 @@
- libpcap0.8
- libpcap0.8-dev
remove:
- dhcpcd5
- nfs-common
- raspberrypi-net-mods
- triggerhappy
@ -471,11 +470,27 @@
# ui.display.type = "waveshare_2"
when: not user_config.stat.exists
- name: Delete motd
file:
state: absent
path: /etc/motd
- name: Delete motd 10-uname
file:
state: absent
path: /etc/update-motd.d/10-uname
- name: enable ssh on boot
file:
path: /boot/ssh
state: touch
- name: disable wlan0 in dhcpcd.conf
lineinfile:
dest: /etc/dhcpcd.conf
insertafter: EOF
line: "denyinterfaces wlan0"
- name: adjust /boot/config.txt
lineinfile:
dest: /boot/config.txt