|
@ -36,7 +36,7 @@ start_service() { |
|
|
append_parm args client_addrs "client-addrs" "0.0.2:10" |
|
|
append_parm args client_addrs "client-addrs" "0.0.2:10" |
|
|
append_parm args layer2 "layer2" |
|
|
append_parm args layer2 "layer2" |
|
|
append_bool args GroupCache "GroupCache" 0 |
|
|
append_bool args GroupCache "GroupCache" 0 |
|
|
append_parm args daemon "daemon" "/var/log/knxd.log" |
|
|
|
|
|
|
|
|
#append_parm args daemon "daemon" "/var/log/knxd.log" |
|
|
append_parm args error "error" # "5" |
|
|
append_parm args error "error" # "5" |
|
|
append_parm args listen_tcp "listen-tcp" "6720" |
|
|
append_parm args listen_tcp "listen-tcp" "6720" |
|
|
append_parm args Interface "Interface" # "eth0" |
|
|
append_parm args Interface "Interface" # "eth0" |
|
@ -56,18 +56,16 @@ start_service() { |
|
|
if [ "$url" == "usb:" ] ; then |
|
|
if [ "$url" == "usb:" ] ; then |
|
|
url="usb:""$(findknxusb | tail -n1 | sed -e 's/device: \([0-9]:[0-9]:[0-9]\):[0-9].*/\1/')" |
|
|
url="usb:""$(findknxusb | tail -n1 | sed -e 's/device: \([0-9]:[0-9]:[0-9]\):[0-9].*/\1/')" |
|
|
fi |
|
|
fi |
|
|
echo "/usr/lib/knxd_args $params $url" |
|
|
|
|
|
/usr/lib/knxd_args $params $url > /tmp/etc/knxd.ini |
|
|
|
|
|
|
|
|
echo "/usr/lib/knxd_args $params -b $url" |
|
|
|
|
|
/usr/lib/knxd_args $params -b $url > /tmp/etc/knxd.ini |
|
|
procd_open_instance |
|
|
procd_open_instance |
|
|
procd_set_param command $PROG "/tmp/etc/knxd.ini" |
|
|
procd_set_param command $PROG "/tmp/etc/knxd.ini" |
|
|
procd_set_param respawn |
|
|
procd_set_param respawn |
|
|
|
|
|
procd_set_param stdout 1 |
|
|
|
|
|
procd_set_param stderr 1 |
|
|
procd_close_instance |
|
|
procd_close_instance |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
stop_service() { |
|
|
|
|
|
killall knxd |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
reload_service() |
|
|
reload_service() |
|
|
{ |
|
|
{ |
|
|
restart |
|
|
restart |
|
|