#!/bin/bash
#
# Minimal soft reboot implementation:
#  - killing EPAD avoids: BSP-6687 Occasional software reboot issues in Yocto 5 Scarthgap

# Make sure EPAD isn't respawned
mount -o bind /dev/null /usr/share/dbus-1/system-services/com.exor.EPAD.service

# Kill all processes, gently then aggressively
killall5
sleep 3
killall5 -9

umount -af

# Now we can hard reboot
reboot -d -f
