--- elwix/config/etc/default/pceng/button.sh 2011/11/02 09:51:32 1.2 +++ elwix/config/etc/default/pceng/button.sh 2017/02/13 16:52:47 1.3 @@ -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.3 2017/02/13 16:52:47 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