Those script will monitor log file pwnagotchi.log
,look for connection to the bettercap endpoint failed...
and can't run my request... connection to the bettercap endpoint failed...
In the event of a connection failure to the Bettercap endpoint, it will automatically restart both Bettercap and Pwnagotchi.
Create both scripts and execute commands at the end to enable the services,
!!! You have to be logged in as root
to create those services !!!
Finally , execute this commands :
chmod +x /root/pwny-restart.sh
chmod +x /root/pwny-restart2.sh
sudo systemctl enable pwny-restart pwny-restart2
sudo systemctl start pwny-restart pwny-restart2