packages/net/knxd/files/knxd.init
Michael Heimpold a3f364b32b knxd: streamline makefile
- use https URL for fetching sources from GitHub, otherwise cloning
  sources could stall buildbots by asking to accept a/the SSH host key
- do not _depend_ on DEPENDS but _select_ them, so the package(s) always
  appear in menuconfig, not only when all dependencies are already
  selected --> dependencies are automatically pulled in when package
  is selected by user
- use PKG_INSTALL
- factor out the libeibclient library as own package
- use CONFIGURE_ARGS instead of dedicated Build/Configure
- same for TARGET_CFLAGS and Build/Compile
- do not include /etc/functions, already included by /etc/rc.common

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-03-07 22:50:56 +01:00

19 lines
329 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=98
STOP=20
NAME=knxd
PROG=/usr/bin/$NAME
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
}