I’m trying to configure my rockpi 4 with armbian bionic. I would like to write a script that causes a reboot when i press a button. Sometimes i loose ssh access to my rock when Plex crashes. I’m trying to debug this but now every time when a crash occurs i have to get attach a monitor mouse and keyboard, log in and reboot.
I’ve found the following script for the raspberry pi, but can anyone please tell me how i can incorporate this for the rockpi running armbian ?
Thank you in advance.