Add compatibility support for specifing IPv4 aliases in

rc.conf without the "inet" keyword.

Obtained from:	hrs
This commit is contained in:
Gleb Smirnoff 2011-12-13 14:36:04 +00:00
parent 75da3c1a9b
commit 84516ac070

View File

@ -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