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.2.18.1! misho 5: # $Id: button.sh,v 1.2 2011/11/02 09:51:32 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.2.18.1! misho 11: /etc/rc.cfg erase 1.2 misho 12: fi 1.2.18.1! misho 13: reboot