You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My PS4 slim had very low power from its usb ports, so I had to keep the pi running from another power source. What I noticed, if PI has ppwned console once, it will not again try to jailbreak it, unless the PI service is restarted. So, created a small utility which will do this, and thereby separating out PS4 shutdown and PI shutdown.
Create a Shell Script:
Write a script that tails the journalctl logs and checks for the specified line. If the line is found, the script will restart the service.
Save this script in a file, for example, /usr/local/bin/check_and_restart.sh.
Make sure the script is executable: chmod +x /usr/local/bin/check_and_restart.sh.
Create a systemd Service:
Create a systemd service that runs this script.
Create a systemd service file at /etc/systemd/system/pipwn_monitor.service:
[Unit]Description=Monitor journalctl for pipwn and restart if needed
[Service]ExecStart=/usr/local/bin/check_and_restart.sh
Restart=always
User=root
[Install]WantedBy=multi-user.target
You can bypass the Pi's input power, I put a USB C breakout port to my Pi3B+ direct to 5v in bypassing voltage/current protection, this allows the Pi to use full power the PS4 USBs can deliver.
PS4 USB's are maxed out between 900-950mah.
My PS4 slim had very low power from its usb ports, so I had to keep the pi running from another power source. What I noticed, if PI has ppwned console once, it will not again try to jailbreak it, unless the PI service is restarted. So, created a small utility which will do this, and thereby separating out PS4 shutdown and PI shutdown.
Create a Shell Script:
Write a script that tails the
journalctl
logs and checks for the specified line. If the line is found, the script will restart the service./usr/local/bin/check_and_restart.sh
.chmod +x /usr/local/bin/check_and_restart.sh
.Create a systemd Service:
Create a systemd service that runs this script.
Create a systemd service file at
/etc/systemd/system/pipwn_monitor.service
:Enable and start the service:
systemctl enable pipwn_monitor.service systemctl start pipwn_monitor.service
Monitoring and logs:
You can monitor the logs of your script using:
The text was updated successfully, but these errors were encountered: