|
@ -37,7 +37,6 @@ start_service() { |
|
|
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_bool args Discovery "Discovery" 1 |
|
|
|
|
|
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" |
|
@ -50,11 +49,17 @@ start_service() { |
|
|
append_bool args tpuarts_ack_all_individual "tpuarts-ack-all-individual" 0 |
|
|
append_bool args tpuarts_ack_all_individual "tpuarts-ack-all-individual" 0 |
|
|
append_bool args tpuarts_disch_reset "tpuarts-disch-reset" 0 |
|
|
append_bool args tpuarts_disch_reset "tpuarts-disch-reset" 0 |
|
|
append_bool args Tunnelling "Tunnelling" 1 |
|
|
append_bool args Tunnelling "Tunnelling" 1 |
|
|
append_bool args Server "Server" 1 |
|
|
|
|
|
|
|
|
append_bool args Discovery "Discovery" 1 |
|
|
|
|
|
append_parm args Server "Server" "224.0.23.12" |
|
|
append_parm args listen_local "listen-local" "/var/run/knxd" |
|
|
append_parm args listen_local "listen-local" "/var/run/knxd" |
|
|
config_get url args url |
|
|
config_get url args url |
|
|
|
|
|
if [ "$url" == "usb:" ] ; then |
|
|
|
|
|
url="usb:""$(findknxusb | tail -n1 | sed -e 's/device: \([0-9]:[0-9]:[0-9]\):[0-9].*/\1/')" |
|
|
|
|
|
fi |
|
|
|
|
|
echo "/usr/lib/knxd_args $params $url" |
|
|
|
|
|
/usr/lib/knxd_args $params $url > /tmp/etc/knxd.ini |
|
|
procd_open_instance |
|
|
procd_open_instance |
|
|
procd_set_param command $PROG "/etc/knxd.ini" |
|
|
|
|
|
|
|
|
procd_set_param command $PROG "/tmp/etc/knxd.ini" |
|
|
procd_set_param respawn |
|
|
procd_set_param respawn |
|
|
procd_close_instance |
|
|
procd_close_instance |
|
|
} |
|
|
} |
|
|