Make sure we actually read the config files before testing values from

them.

Reported by:	Darren Pilgrim <dmp at bitfreak dot org>
PR:		conf/82313
Approved by:	re (network interface startup blanket)
This commit is contained in:
Brooks Davis 2005-06-16 18:08:04 +00:00
parent d382695820
commit d873676af6

View File

@ -15,18 +15,6 @@ usage()
err 3 'USAGE: $0 interface (start|stop)'
}
ifn=$1
shift
startstop=$1
shift
# Ignore interfaces not in removable_interfaces
expr "${removable_interfaces}" : ".*${ifn}" > /dev/null || exit 0
if [ -n "$1" ]; then
usage
fi
setup_routes()
{
# Add default route into $static_routes
@ -66,8 +54,20 @@ remove_routes()
fi
}
ifn=$1
shift
startstop=$1
shift
load_rc_config pccard_ether
# Ignore interfaces not in removable_interfaces
expr "${removable_interfaces}" : ".*${ifn}" > /dev/null || exit 0
if [ -n "$1" ]; then
usage
fi
case ${startstop} in
[Ss][Tt][Aa][Rr][Tt] | '')
if [ -x /usr/bin/grep ]; then