packages/utils/lcd4linux/files/lcd4linux.init
olli bf2c89aa7a [Packages] utils/lcd4linux:
* Update to lcd4linux trunk revision 847
 * Add an simple init script and config file
 * Cleanup Makefile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@9646 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-02 21:24:04 +00:00

19 lines
296 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
START=98
NAME=lcd4linux
BIN_F=/usr/bin/$NAME
PID_F=/var/run/lcd4linux.pid
SSD=start-stop-daemon
OPTIONS="-q -p $PID_F -f /etc/lcd4linux.conf"
start() {
$SSD -S -q -p $PID_F -b -x $BIN_F -- $OPTIONS
}
stop() {
$SSD -K -q -p $PID_F
}