summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/netif
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-06-30 04:46:21 +0000
committerbrooks <brooks@FreeBSD.org>2005-06-30 04:46:21 +0000
commitda81e8c0fcb389e17af19847ced52a20023cfc9b (patch)
tree4c1bbf887a330cd052eb0be42fb197f1db8a87bb /etc/rc.d/netif
parent17f62c51ca500d6e71b7260d957da4d7f7728133 (diff)
downloadFreeBSD-src-da81e8c0fcb389e17af19847ced52a20023cfc9b.zip
FreeBSD-src-da81e8c0fcb389e17af19847ced52a20023cfc9b.tar.gz
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)
Diffstat (limited to 'etc/rc.d/netif')
-rw-r--r--etc/rc.d/netif11
1 files changed, 4 insertions, 7 deletions
diff --git a/etc/rc.d/netif b/etc/rc.d/netif
index 88bccb7..bad471b 100644
--- a/etc/rc.d/netif
+++ b/etc/rc.d/netif
@@ -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
OpenPOWER on IntegriCloud