diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/network.subr | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/network.subr b/etc/network.subr index c1faf59..070f884 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -716,9 +716,16 @@ ifalias_ipv4_up() inet\ *) ifconfig $1 ${ifconfig_args} alias && _ret=0 ;; + inet6\ *) + ;; "") break ;; + *) + warn "\$ifconfig_$1_alias${alias} needs " \ + "\"inet\" keyword for an IPv4 address." + ifconfig $1 ${ifconfig_args} alias && _ret=0 + ;; esac alias=$((${alias} + 1)) done |