mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
knxd: add init file
Signed-off-by: Othmar Truniger <github@truniger.ch>
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user