diff options
author | Jerônimo Lopes <lopesjeronimo@gmail.com> | 2014-04-28 12:34:52 -0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-04-28 21:48:53 +0200 |
commit | b1bfc2d2e51ae49c6f9a5cbbc2a0f87bf863f024 (patch) | |
tree | a49911f18f28f34761e8082c3eb6947b47938140 /package/ofono/S46ofono | |
parent | 9e4b0e62e16f7d667eba51f9b23e0b1496b90866 (diff) | |
download | buildroot-b1bfc2d2e51ae49c6f9a5cbbc2a0f87bf863f024.tar.gz buildroot-b1bfc2d2e51ae49c6f9a5cbbc2a0f87bf863f024.zip |
ofono: add init script
Signed-off-by: Jerônimo Lopes <lopesjeronimo@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/ofono/S46ofono')
-rwxr-xr-x | package/ofono/S46ofono | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/ofono/S46ofono b/package/ofono/S46ofono new file mode 100755 index 0000000000..34d2b6aa4f --- /dev/null +++ b/package/ofono/S46ofono @@ -0,0 +1,22 @@ +#!/bin/sh + +case "$1" in + start) + echo -n "Starting ofono ... " + start-stop-daemon -S -q -m -b -p /var/run/ofonod.pid --exec /usr/sbin/ofonod -- -n + echo "done." + ;; + stop) + echo -n "Stopping ofono ..." + start-stop-daemon -K -q -p /var/run/ofonod.pid + echo "done." + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" + ;; +esac |