diff options
author | W. Michael Petullo <mike@flyn.org> | 2015-10-18 22:22:08 -0400 |
---|---|---|
committer | W. Michael Petullo <mike@flyn.org> | 2015-10-18 22:22:08 -0400 |
commit | be526f6f0e19ff9c5daea6ca2c33476236f50993 (patch) | |
tree | ea16f0055b640c4092fb0e3da3221f64d329fac2 /multimedia/lcdgrilo/files | |
parent | 59fcc276d5d00d4639820c254f55c7aac2d5a839 (diff) |
lcdgrilo: add new package
Signed-off-by: W. Michael Petullo <mike@flyn.org>
Diffstat (limited to 'multimedia/lcdgrilo/files')
-rw-r--r-- | multimedia/lcdgrilo/files/lcdgrilo.init | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/lcdgrilo/files/lcdgrilo.init b/multimedia/lcdgrilo/files/lcdgrilo.init new file mode 100644 index 000000000..5c4ff1b8f --- /dev/null +++ b/multimedia/lcdgrilo/files/lcdgrilo.init @@ -0,0 +1,16 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2009-2012 OpenWrt.org + +START=60 + +start() { + /usr/bin/lcdgrilo & + echo $! > /var/run/lcdgrilo.pid +} + +stop() { + if [ ! -f /var/run/lcdgrilo.pid ]; then + return + fi + /bin/kill `cat /var/run/lcdgrilo.pid` +} |