#!/bin/bash

STATE_DIR="/var/lib/kuroevtd"
debug=true

${debug} && echo "[kuroevtd] powerpress: reset in EM mode now!"
if grep -q started <<<$(/etc/init.d/em-fallback status 2>/dev/null) ; then
	/etc/init.d/em-fallback stop
fi
rm -f ${STATE_DIR}/*
write_ng 
shutdown -r now
