--- openrc-0.11.8.orig/net/ifconfig.sh.Linux.in 2012-12-07 19:53:28.000000000 +0400 +++ openrc-0.11.8.orig/net/ifconfig.sh.Linux.in 2012-12-25 13:06:54.000000000 +0400 @@ -208,9 +208,11 @@ set -- "${one}" "${two}" gw "$@" fi - case "$@" in - *:*|default*) [ "$1" = "-net" -o "$1" = "-host" ] && shift;; - esac + if [ "$1" = "-net" -o "$1" = "-host" ]; then + if [ "${2##*:}" != "$2" ]; then shift + elif [ "$2" = "default" ]; then shift + fi + fi route ${family} add "$@" dev "${IFACE}" }