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 +}