simplify
This commit is contained in:
parent
86c0819aee
commit
2e74a3b7d6
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: t_tcpdump.sh,v 1.2 2012/04/14 15:13:57 jruoho Exp $
|
||||
# $NetBSD: t_tcpdump.sh,v 1.3 2012/04/15 03:05:57 christos Exp $
|
||||
#
|
||||
# Copyright (c) 2012 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -41,16 +41,9 @@ promiscuous_head() {
|
|||
|
||||
promiscuous_body() {
|
||||
|
||||
ifs="lo0 age0 ath0 bge0 dge0 re0 rtk0 sip0 sk0 iwn0 vr0 wm0 wpi0"
|
||||
|
||||
for i in $ifs; do
|
||||
|
||||
ifconfig $i >/dev/null 2>&1
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Testing $i"
|
||||
prom $i
|
||||
fi
|
||||
for i in $(ifconfig -l); do
|
||||
echo "Testing $i"
|
||||
prom $i
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue