Support gif_interface values that don't follow the pattern gif###.

Remove ancient compatablity support for gif_interface="NO".
This commit is contained in:
Brooks Davis 2008-03-28 06:50:06 +00:00
parent 856744ba93
commit b31eb9bec0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177682

View File

@ -472,14 +472,6 @@ ng_create_one() {
}
gif_up() {
# The following must be removed once RELENG_7 is branched.
case ${gif_interfaces} in
[Nn][Oo])
warn "gif_interfaces=\"NO\" is deprecated, use gif_interfaces=\"\" instead."
gif_interfaces=""
;;
esac
for i in ${gif_interfaces}; do
peers=`get_if_var $i gifconfig_IF`
case ${peers} in
@ -487,7 +479,12 @@ gif_up() {
continue
;;
*)
ifconfig $i create >/dev/null 2>&1
if expr $i : 'gif[0-9][0-9]*$' >/dev/null 2>&1; then
ifconfig $i create >/dev/null 2>&1
else
gif=`ifconfig gif create`
ifconfig $gif name $i
fi
ifconfig $i tunnel ${peers}
ifconfig $i up
;;