arp(8) invocations fixed -- one does not use "-n" with "-d".

Obtained from:	OpenBSD (rev 1.7)
This commit is contained in:
David E. O'Brien 2000-07-20 09:55:08 +00:00
parent 38234a80b2
commit 11c898d281

View File

@ -101,7 +101,7 @@ if [ "x$reason" = "xBOUND" ] || [ "x$reason" = "xRENEW" ] || \
shift; shift
done
fi
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -n -d \1/p' |sh
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' |sh
fi
if [ "x$old_ip_address" = "x" ] || [ "x$old_ip_address" != "x$new_ip_address" ] || \
[ "x$reason" = "xBOUND" ] || [ "x$reason" = "xREBOOT" ]; then
@ -154,7 +154,7 @@ if [ "x$reason" = "xEXPIRE" ] || [ "x$reason" = "xFAIL" ]; then
shift; shift
done
fi
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -n -d \1/p' \
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' \
|sh >/dev/null 2>&1
fi
if [ "x$alias_ip_address" != "x" ]; then
@ -212,7 +212,7 @@ if [ "x$reason" = "xTIMEOUT" ]; then
shift; shift
done
fi
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -n -d \1/p' \
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' \
|sh >/dev/null 2>&1
exit_with_hooks 1
fi