--- tincd.orig 2016-02-16 14:54:29.924205088 +0100 +++ tincd 2016-02-16 15:03:50.710159288 +0100 @@ -39,16 +39,35 @@ tincd_start() { + local setfib + setfib=/usr/sbin/setfib ${ldconfig_command} -elf -m /usr/local/lib if test -z "${tincd_cfg}" then - echo "Starting tincd" - $command + eval tincd_fib=\$${name}_fib + if [ -n "${tincd_fib}" ] + then + procname="${command}" + echo "Starting tincd" + $setfib -F ${tincd_fib} $command ${command_args} + else + echo "Starting tincd" + $command ${command_args} + fi else for cfg in ${tincd_cfg} do - echo "Starting tincd for: ${cfg}" - $command -n $cfg $tincd_flags + eval tincd_fib=\$${name}_${cfg}_fib + command_args="-n $cfg" + if [ -n "${tincd_fib}" ] + then + procname="${command}" + echo "Starting tincd" + $setfib -F ${tincd_fib} $command ${command_args} + else + echo "Starting tincd for: ${cfg}" + $command ${command_args} + fi done fi # code deliberately borrowed from /etc/rc.d/netif