diff options
author | Doug Knight <doug.knight@karmix.org> | 2011-10-07 11:59:17 -0800 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-10-07 16:28:05 -0400 |
commit | 07b90103fcee7e6ec096f941fd4688923b8cf768 (patch) | |
tree | 71c3ad2956dc33398ffabf6b7637af2de961b41f /rc.d/init.d/netconsole | |
parent | 73d7cf7234f4c903e13de28d71a839afff9b93ca (diff) | |
download | initscripts-07b90103fcee7e6ec096f941fd4688923b8cf768.tar initscripts-07b90103fcee7e6ec096f941fd4688923b8cf768.tar.gz initscripts-07b90103fcee7e6ec096f941fd4688923b8cf768.tar.bz2 initscripts-07b90103fcee7e6ec096f941fd4688923b8cf768.tar.xz initscripts-07b90103fcee7e6ec096f941fd4688923b8cf768.zip |
Only use the first ARP response in netconsole (#744309)
Diffstat (limited to 'rc.d/init.d/netconsole')
-rw-r--r-- | rc.d/init.d/netconsole | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/netconsole b/rc.d/init.d/netconsole index 7f91a6c6..42733de0 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") }') + arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G"); exit }') [ -n "$arp" ] && echo "SYSLOGMACADDR=$arp" fi } |