Return to button.sh CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / pceng |
1.2 misho 1: #!/bin/sh 2: # 3: # Button event script 4: # 1.3 ! misho 5: # $Id: button.sh,v 1.2.18.1 2014/09/17 15:51:35 misho Exp $ 1.2 misho 6: 7: PRESSED=${1:-0} 8: 9: logger "Button pressed for $PRESSED seconds" 10: if [ $PRESSED -gt 3 ]; then 1.3 ! misho 11: /etc/rc.cfg erase 1.2 misho 12: fi 1.3 ! misho 13: reboot