diff options
author | Daniel Kaminski <maniel.rulez@gmail.com> | 2008-07-22 17:50:02 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-07-22 17:50:02 -0400 |
commit | b7d66decca5117aaba3b73d2eccb97594ef1ea98 (patch) | |
tree | 596a749e23596ee6987212158a9f129211f712ac | |
parent | 04899c1b829f1a4708a04e2188b256901845770f (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-x | network | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 $? } |