1 2 3 4 5 6 7 8 9 10 11 12
#!/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