blob: 1d7b0fc39f6e2863f797760180a03415426e2d49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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
|