diff options
Diffstat (limited to 'meta-oe/recipes-core/emlog/files/emlog.initd')
-rw-r--r-- | meta-oe/recipes-core/emlog/files/emlog.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/emlog/files/emlog.initd b/meta-oe/recipes-core/emlog/files/emlog.initd new file mode 100644 index 0000000000..361cf8029e --- /dev/null +++ b/meta-oe/recipes-core/emlog/files/emlog.initd | |||
@@ -0,0 +1,25 @@ | |||
1 | #!/bin/sh | ||
2 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | ||
3 | |||
4 | [ -r /etc/default/emlog ] && . /etc/default/emlog | ||
5 | |||
6 | do_start() { | ||
7 | : | ||
8 | } | ||
9 | |||
10 | do_stop() { | ||
11 | nbcat /dev/emlog > /data/emlog | ||
12 | } | ||
13 | |||
14 | case "$1" in | ||
15 | start) | ||
16 | do_start || exit $? | ||
17 | ;; | ||
18 | stop) | ||
19 | do_stop || exit $? | ||
20 | ;; | ||
21 | *) | ||
22 | echo "Usage: $0 {stop}" >&2 | ||
23 | exit 3 | ||
24 | ;; | ||
25 | esac | ||