diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-12-13 14:36:04 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-12-13 14:36:04 +0000 |
commit | 84516ac070fced1590214ce9ee2d02be836cb6cc (patch) | |
tree | 8da3fccc7b94da459c796a71ef8cf454eaacc750 /etc | |
parent | 75da3c1a9be663083e48f931994c1caae3f9b7a9 (diff) | |
download | src-84516ac070fced1590214ce9ee2d02be836cb6cc.tar.gz src-84516ac070fced1590214ce9ee2d02be836cb6cc.zip |
Add compatibility support for specifing IPv4 aliases in
rc.conf without the "inet" keyword.
Obtained from: hrs
Notes
Notes:
svn path=/head/; revision=228472
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 c1faf59bfa3c..070f88497cbf 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 |