knxd: add init file

Signed-off-by: Othmar Truniger <github@truniger.ch>
This commit is contained in:
Othmar Truniger 2014-12-31 10:14:02 +01:00
parent 3a8983f379
commit f2bdf8e63f

22
net/knxd/files/knxd.init Normal file
View file

@ -0,0 +1,22 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=90
STOP=20
NAME=knxd
PROG=/usr/bin/$NAME
. /lib/functions.sh
start() {
local options url
config_load "$NAME"
config_get options args options ''
config_get url args url
service_start $PROG $options $url
}
stop() {
service_stop $PROG
}