Annotation of elwix/config/etc/default/reset.sh, revision 1.1.2.2
1.1.2.1 misho 1: #!/bin/sh
2: #
3: # Reset button event script
4: #
1.1.2.2 ! misho 5: # $Id: reset.sh,v 1.1.2.1 2014/02/08 16:40:31 misho Exp $
1.1.2.1 misho 6:
7: logger "Reset Button pressed event $1"
8: case "$1" in
9: click)
10: reboot
11: ;;
12: default)
13: /etc/rc.cfg erase
1.1.2.2 ! misho 14: reboot
1.1.2.1 misho 15: ;;
16: *)
17: echo "Error:: Unknown event $1"
18: exit 1
19: ;;
20: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>