File:
[ELWIX - Embedded LightWeight unIX -] /
embedtools /
etc /
reset.sh
Revision
1.2:
download - view:
text,
annotated -
select for diffs -
revision graph
Sat Feb 8 20:57:16 2014 UTC (10 years, 7 months ago) by
misho
Branches:
MAIN
CVS tags:
tools3_0,
tools2_9,
tools2_8,
tools2_7,
TOOLS2_9,
TOOLS2_8,
TOOLS2_7,
TOOLS2_6,
HEAD
version 2.6
1: #!/bin/sh
2: #
3: # Reset button event script
4: #
5: # $Id: reset.sh,v 1.2 2014/02/08 20:57:16 misho Exp $
6:
7: logger "Reset Button pressed event $1"
8: case "$1" in
9: click)
10: reboot
11: ;;
12: default)
13: /etc/rc.cfg erase
14: reboot
15: ;;
16: *)
17: echo "Error:: Unknown event $1"
18: exit 1
19: ;;
20: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>