- 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>
19 lines
329 B
Bash
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
|
|
}
|