aboutsummaryrefslogtreecommitdiff
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2006-08-17 03:03:38 +0000
committerBrooks Davis <brooks@FreeBSD.org>2006-08-17 03:03:38 +0000
commit4e7ff69a4c7da1626489e598a7173c3eab0a570d (patch)
tree05ac25c2ce4ac473a12fd1ba303cf9a1fbc4e8e6 /etc/pccard_ether
parent3095bda433c5f60c646928d9633e6580e57ef945 (diff)
downloadsrc-4e7ff69a4c7da1626489e598a7173c3eab0a570d.tar.gz
src-4e7ff69a4c7da1626489e598a7173c3eab0a570d.zip
Introduce a new function, ifexists and use it to avoid attempting to
touch interfaces that don't actually exist in the stop case. In the process move some IPv4 specific code from ifconfig_down to ipv4_down. This should solve problems with ifconfig: error messages on boot when interfaces are renamed.
Notes
Notes: svn path=/head/; revision=161386
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index 5aab9e84c9be..3fb062f7ff14 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -101,7 +101,7 @@ pccard_ether_stop()
/etc/rc.d/netif stop $ifn
# clean ARP table
- arp -d -a
+ ifexists $ifn && arp -d -i $ifn -a
# Clean the routing table
if checkyesno removable_route_flush; then