packages/net/linknx/files/linknx.init
Othmar Truniger c7e53198ae linknx: add init file
Signed-off-by: Othmar Truniger <github@truniger.ch>
2014-12-31 10:20:11 +01:00

22 lines
441 B
Bash

#!/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
}