mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
telldus-core: Add new package.
Signed-off-by: Peter Liedholm <PeterFromSwe884@gmail.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
|
||||
START=99
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/telldusd
|
||||
CONFFILE=/etc/tellstick.conf
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG
|
||||
procd_append_param command --nodaemon # foreground required by procd
|
||||
procd_set_param file $CONFFILE
|
||||
procd_set_param term_timeout 10 # telldusd is slow to exit of some reason
|
||||
procd_set_param respawn # respawn the service if it exits
|
||||
procd_set_param stdout 1 # forward stdout of the command to logd
|
||||
procd_set_param stderr 1 # same for stderr
|
||||
procd_close_instance
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
user = "root"
|
||||
group = "root"
|
||||
ignoreControllerConfirmation = "false"
|
||||
device {
|
||||
id = 1
|
||||
name = "Example device"
|
||||
protocol = "arctech"
|
||||
model = "codeswitch"
|
||||
parameters {
|
||||
house = "A"
|
||||
unit = "1"
|
||||
}
|
||||
}
|
||||
|
||||
# Example controller (tellstick duo)
|
||||
#controller {
|
||||
#id=1
|
||||
# name=""
|
||||
#type=2
|
||||
#serial="A501IVK7"
|
||||
#}
|
||||
Reference in New Issue
Block a user