summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kaminski <maniel.rulez@gmail.com>2008-07-22 17:50:02 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2008-07-22 17:50:02 -0400
commitb7d66decca5117aaba3b73d2eccb97594ef1ea98 (patch)
tree596a749e23596ee6987212158a9f129211f712ac
parent04899c1b829f1a4708a04e2188b256901845770f (diff)
ipv6 over ipv4 tunneling support in /etc/rc.d/network
This is done by checking the route config for a double colon Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xnetwork12
1 files changed, 10 insertions, 2 deletions
diff --git a/network b/network
index a7dd136..26cc9db 100755
--- a/network
+++ b/network
@@ -87,7 +87,11 @@ rtup()
return 1
fi
eval routecfg="\$${1}"
- /sbin/route add $routecfg
+ if grep -q :: <<< $routecfg; then
+ /sbin/route -A inet6 add $routecfg
+ else
+ /sbin/route add $routecfg
+ fi
return $?
}
@@ -98,7 +102,11 @@ rtdown()
return 1
fi
eval routecfg="\$${1}"
- /sbin/route del $routecfg
+ if grep -q :: <<< $routecfg; then
+ /sbin/route -A inet6 del $routecfg
+ else
+ /sbin/route del $routecfg
+ fi
return $?
}