knxd: add init file
Signed-off-by: Othmar Truniger <github@truniger.ch>
This commit is contained in:
parent
3a8983f379
commit
f2bdf8e63f
1 changed files with 22 additions and 0 deletions
22
net/knxd/files/knxd.init
Normal file
22
net/knxd/files/knxd.init
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in a new issue