From 538b547560b53f688186ebfc93c868d9d38f5a72 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Tue, 22 Oct 2019 12:09:41 +0200 Subject: [PATCH] fix: on rpi4 sometimes systemd fails to monstart --- builder/pwnagotchi.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml index e0bd2a5..0b449ac 100644 --- a/builder/pwnagotchi.yml +++ b/builder/pwnagotchi.yml @@ -324,6 +324,7 @@ #!/usr/bin/env bash # blink 10 times to signal ready state /usr/bin/bootblink 10 & + /usr/bin/monstart if ifconfig | grep usb0 | grep RUNNING; then # if override file exists, go into auto mode if [ -f /root/.pwnagotchi-auto ]; then @@ -543,9 +544,7 @@ [Service] Type=simple PermissionsStartOnly=true - ExecStartPre=/usr/bin/monstart ExecStart=/usr/bin/bettercap-launcher - ExecStopPost=/usr/bin/monstop Restart=always RestartSec=30