tincd.patch 1011 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- tincd.orig 2016-02-16 14:54:29.924205088 +0100
  2. +++ tincd 2016-02-16 15:03:50.710159288 +0100
  3. @@ -39,16 +39,35 @@
  4. tincd_start()
  5. {
  6. + local setfib
  7. + setfib=/usr/sbin/setfib
  8. ${ldconfig_command} -elf -m /usr/local/lib
  9. if test -z "${tincd_cfg}"
  10. then
  11. - echo "Starting tincd"
  12. - $command
  13. + eval tincd_fib=\$${name}_fib
  14. + if [ -n "${tincd_fib}" ]
  15. + then
  16. + procname="${command}"
  17. + echo "Starting tincd"
  18. + $setfib -F ${tincd_fib} $command ${command_args}
  19. + else
  20. + echo "Starting tincd"
  21. + $command ${command_args}
  22. + fi
  23. else
  24. for cfg in ${tincd_cfg}
  25. do
  26. - echo "Starting tincd for: ${cfg}"
  27. - $command -n $cfg $tincd_flags
  28. + eval tincd_fib=\$${name}_${cfg}_fib
  29. + command_args="-n $cfg"
  30. + if [ -n "${tincd_fib}" ]
  31. + then
  32. + procname="${command}"
  33. + echo "Starting tincd"
  34. + $setfib -F ${tincd_fib} $command ${command_args}
  35. + else
  36. + echo "Starting tincd for: ${cfg}"
  37. + $command ${command_args}
  38. + fi
  39. done
  40. fi
  41. # code deliberately borrowed from /etc/rc.d/netif