#!/bin/bash

#killall grmain.exe
#killall python3

sleep 1
killall fbi
fbi --noverbose -T 1 ./gfx/shutdownwait.png

sync
sleep 2

for s in `systemctl | grep service | cut -d '.' -f 1`; do systemctl stop $s; done
umount /
umount /boot/

killall fbi
fbi --noverbose -T 1 ./gfx/usb_eject_poweroff.png
