diff options
Diffstat (limited to 'net/ifconfig.sh.Linux.in')
-rw-r--r-- | net/ifconfig.sh.Linux.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in index 1ac0dd52..80a0b987 100644 --- a/net/ifconfig.sh.Linux.in +++ b/net/ifconfig.sh.Linux.in @@ -188,6 +188,12 @@ _add_route() if [ "$1" = "-A" -o "$1" = "-f" -o "$1" = "-family" ]; then family="-A $2" shift; shift + elif [ "$1" = "-4" ]; then + family="-A inet" + shift + elif [ "$1" = "-6" ]; then + family="-A inet6" + shift fi if [ -n "${metric}" ]; then |