aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/emlog/emlog/emlog.initd
blob: 361cf8029ed88111adb0496cec004ea470f2b636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin

[ -r /etc/default/emlog ] && . /etc/default/emlog

do_start() {
    :
}

do_stop() {
    nbcat /dev/emlog > /data/emlog
}

case "$1" in
    start)
	    do_start || exit $?
	    ;;
    stop)
	    do_stop || exit $?
	    ;;
    *)
	    echo "Usage: $0 {stop}" >&2
	    exit 3
	    ;;
esac