|
|
@ -33,15 +33,14 @@ start_service() { |
|
|
|
local options url |
|
|
|
config_load knxd |
|
|
|
append_parm args eibaddr "eibaddr" "0.0.1" |
|
|
|
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_bool args GroupCache "GroupCache" 0 |
|
|
|
append_parm args daemon "daemon" "/var/log/knxd.log" |
|
|
|
append_bool args Discovery "Discovery" 1 |
|
|
|
append_parm args error "error" # "5" |
|
|
|
append_parm args listen_tcp "listen-tcp" "6720" |
|
|
|
append_parm args Interface "Interface" # "eth0" |
|
|
|
append_parm args send-delay "send-delay" # "50" |
|
|
|
append_parm args send_delay "send-delay" # "50" |
|
|
|
append_parm args Name "Name" "OpenWrt" |
|
|
|
append_bool args no_monitor "no-monitor" 0 |
|
|
|
append_bool args Routing "Routing" 0 |
|
|
@ -50,11 +49,17 @@ start_service() { |
|
|
|
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 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" |
|
|
|
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_set_param command $PROG $params $url |
|
|
|
procd_set_param command $PROG "/tmp/etc/knxd.ini" |
|
|
|
procd_set_param respawn |
|
|
|
procd_close_instance |
|
|
|
} |
|
|
|