Add compatibility support for specifing IPv4 aliases in
rc.conf without the "inet" keyword. Obtained from: hrs
This commit is contained in:
parent
75da3c1a9b
commit
84516ac070
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user