diff options
author | Othmar Truniger <tru7@users.noreply.github.com> | 2014-12-31 10:20:11 +0100 |
---|---|---|
committer | Othmar Truniger <tru7@users.noreply.github.com> | 2014-12-31 10:20:11 +0100 |
commit | c7e53198aefd9e659e3406980e6f68a21b2d946a (patch) | |
tree | b48a3ba376396631b41bba170d437e512d335270 /net/linknx/files/linknx.init | |
parent | d2c7bf32ae0700d6530c11c31281f2459e0e90fa (diff) |
linknx: add init file
Signed-off-by: Othmar Truniger <github@truniger.ch>
Diffstat (limited to 'net/linknx/files/linknx.init')
-rw-r--r-- | net/linknx/files/linknx.init | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/linknx/files/linknx.init b/net/linknx/files/linknx.init new file mode 100644 index 000000000..574bf4197 --- /dev/null +++ b/net/linknx/files/linknx.init @@ -0,0 +1,22 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +START=98 +STOP=10 +NAME=linknx +PROG=/usr/bin/$NAME + +. /lib/functions.sh + +start() { + local conf options + config_load "$NAME" + config_get conf args conf '/etc/linknx.xml' + config_get options args options '' + test -f $conf || cp -p /etc/linknx.xml.dist $conf + service_start $PROG --config=$conf $options +} + +stop() { + service_stop $PROG +} |