--- elwix/config/etc/default/pceng/button.sh 2011/11/02 09:51:32 1.2 +++ elwix/config/etc/default/pceng/button.sh 2014/09/17 15:51:35 1.2.18.1 @@ -2,13 +2,12 @@ # # Button event script # -# $Id: button.sh,v 1.2 2011/11/02 09:51:32 misho Exp $ +# $Id: button.sh,v 1.2.18.1 2014/09/17 15:51:35 misho Exp $ PRESSED=${1:-0} logger "Button pressed for $PRESSED seconds" if [ $PRESSED -gt 3 ]; then - halt -p -else - reboot + /etc/rc.cfg erase fi +reboot