When interfaces are given on the command line, don't attempt to filter

them.  Just try to run the given command on them.  We need to be able to
run stop functions on interfaces that have been deleted to stop
wpa_supplicant.

Approved by:	re (interface startup blanket)
This commit is contained in:
Brooks Davis 2005-06-30 04:46:21 +00:00
parent 48033188a6
commit d3a260999d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147681

View File

@ -109,13 +109,10 @@ network_common()
#
_cooked_list=
if [ -n "$_cmdifn" ]; then
for i in $_cmdifn ; do
eval _if=\"`expr "$_ifn_list" : ".*\(${i}\).*"`\"
if [ -z "$_if" ]; then
err 1 "No such network interface: $i"
fi
_cooked_list="$_cooked_list $_if"
done
# Don't check that the interfaces exist. We need to run
# the down code even when the interface doesn't exist to
# kill off wpa_supplicant.
_cooked_list="$_cmdifn"
else
_cooked_list="$_ifn_list"
fi