You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/miredo/files/miredo-1.2.5-ip-path.patch

29 lines
802 B

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