aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netconsole
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-11-15 13:40:56 -0500
committerBill Nottingham <notting@redhat.com>2011-11-15 13:40:56 -0500
commit74eb8b4e9cc1aecb9bce40f4e5df1c41a36396e9 (patch)
tree184bd302758561a45d4646e429881badee84a51a /rc.d/init.d/netconsole
parentc0e2c32eebea3c99807ca5f0505dcb020250a2a6 (diff)
downloadinitscripts-74eb8b4e9cc1aecb9bce40f4e5df1c41a36396e9.tar
initscripts-74eb8b4e9cc1aecb9bce40f4e5df1c41a36396e9.tar.gz
initscripts-74eb8b4e9cc1aecb9bce40f4e5df1c41a36396e9.tar.bz2
initscripts-74eb8b4e9cc1aecb9bce40f4e5df1c41a36396e9.tar.xz
initscripts-74eb8b4e9cc1aecb9bce40f4e5df1c41a36396e9.zip
Just exit on first response (#744734)
Diffstat (limited to 'rc.d/init.d/netconsole')
-rw-r--r--rc.d/init.d/netconsole2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/netconsole b/rc.d/init.d/netconsole
index 42733de0..1b10af2d 100644
--- a/rc.d/init.d/netconsole
+++ b/rc.d/init.d/netconsole
@@ -54,7 +54,7 @@ print_address_info ()
target=$host
fi
if [ -z "$SYSLOGMACADDR" ]; then
- arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G"); exit }')
+ arp=$(LANG=C /sbin/arping -f -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G"); exit }')
[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
fi
}