fix: on rpi4 sometimes systemd fails to monstart
This commit is contained in:
parent
414a6b4c7a
commit
538b547560
@ -324,6 +324,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# blink 10 times to signal ready state
|
# blink 10 times to signal ready state
|
||||||
/usr/bin/bootblink 10 &
|
/usr/bin/bootblink 10 &
|
||||||
|
/usr/bin/monstart
|
||||||
if ifconfig | grep usb0 | grep RUNNING; then
|
if ifconfig | grep usb0 | grep RUNNING; then
|
||||||
# if override file exists, go into auto mode
|
# if override file exists, go into auto mode
|
||||||
if [ -f /root/.pwnagotchi-auto ]; then
|
if [ -f /root/.pwnagotchi-auto ]; then
|
||||||
@ -543,9 +544,7 @@
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
PermissionsStartOnly=true
|
PermissionsStartOnly=true
|
||||||
ExecStartPre=/usr/bin/monstart
|
|
||||||
ExecStart=/usr/bin/bettercap-launcher
|
ExecStart=/usr/bin/bettercap-launcher
|
||||||
ExecStopPost=/usr/bin/monstop
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=30
|
RestartSec=30
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user