File:
[ELWIX - Embedded LightWeight unIX -] /
elwix /
config /
etc /
default /
reset.sh
Revision
1.2:
download - view:
text,
annotated -
select for diffs -
revision graph
Mon Sep 15 19:06:44 2014 UTC (9 years, 11 months ago) by
misho
Branches:
MAIN
CVS tags:
elwix2_8,
elwix2_7,
elwix2_6,
elwix2_3,
HEAD,
ELWIX2_7,
ELWIX2_6,
ELWIX2_5,
ELWIX2_2p0
elwix 2.2
1: #!/bin/sh
2: #
3: # Reset button event script
4: #
5: # $Id: reset.sh,v 1.2 2014/09/15 19:06:44 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>