mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -342,7 +342,20 @@
|
|||||||
copy:
|
copy:
|
||||||
dest: "/etc/rc.local"
|
dest: "/etc/rc.local"
|
||||||
content: |
|
content: |
|
||||||
depmod -a
|
#!/bin/sh -e
|
||||||
|
#
|
||||||
|
# rc.local
|
||||||
|
#
|
||||||
|
# This script is executed at the end of each multiuser runlevel.
|
||||||
|
# Make sure that the script will "exit 0" on success or any other
|
||||||
|
# value on error.
|
||||||
|
#
|
||||||
|
# In order to enable or disable this script just change the execution
|
||||||
|
# bits.
|
||||||
|
#
|
||||||
|
# By default this script does nothing.
|
||||||
|
|
||||||
|
/sbin/depmod -a
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
- name: make /etc/rc.local executable
|
- name: make /etc/rc.local executable
|
||||||
@ -350,19 +363,6 @@
|
|||||||
path: "/etc/rc.local"
|
path: "/etc/rc.local"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: make rc.local service
|
|
||||||
copy:
|
|
||||||
dest: "/etc/systemd/system/rc-local.service"
|
|
||||||
content: |
|
|
||||||
ExecStart=/etc/rc.local start
|
|
||||||
TimeoutSec=0
|
|
||||||
StandardOutput=tty
|
|
||||||
RemainAfterExit=yes
|
|
||||||
SysVStartPriority=99
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
||||||
# 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
|
||||||
file:
|
file:
|
||||||
|
Reference in New Issue
Block a user