miredo-1.2.5-ip-path.patch 802 B

1234567891011121314151617181920212223242526272829
  1. Index: miredo-1.2.5/misc/client-hook.iproute
  2. ===================================================================
  3. --- miredo-1.2.5.orig/misc/client-hook.iproute
  4. +++ miredo-1.2.5/misc/client-hook.iproute
  5. @@ -5,7 +5,10 @@
  6. # Distributed under the terms of the GNU General Public License version 2.
  7. # Linux iproute2 path:
  8. -IP="/sbin/ip"
  9. +IP="ip"
  10. +
  11. +test -x "/sbin/ip" && IP=/sbin/ip
  12. +test -x "/bin/ip" && IP=/bin/ip
  13. # Linux default route default metric is 1024
  14. # (we put 1029 so that Teredo is used as a last resort):
  15. @@ -23,11 +26,6 @@ PRIO=32765
  16. # (default: specified by the Teredo server, or 1280)
  17. #MTU=1400
  18. -if ! test -x "$IP"; then
  19. - echo "$0: iproute2 is required! Please install it." >&2
  20. - exit 1
  21. -fi
  22. -
  23. # Nothing to do with destroy event
  24. if test "$STATE" = "destroy"; then exit 0; fi