diff options
author | brooks <brooks@FreeBSD.org> | 2006-08-17 03:03:38 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2006-08-17 03:03:38 +0000 |
commit | 753b3bce68b4863498f2eb4c8bd1d7fda84d1bc6 (patch) | |
tree | 05ac25c2ce4ac473a12fd1ba303cf9a1fbc4e8e6 /etc/pccard_ether | |
parent | 6e2c7c961f3ea9e2f7e5a01b8f6125e84808e826 (diff) | |
download | FreeBSD-src-753b3bce68b4863498f2eb4c8bd1d7fda84d1bc6.zip FreeBSD-src-753b3bce68b4863498f2eb4c8bd1d7fda84d1bc6.tar.gz |
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.
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-x | etc/pccard_ether | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether index 5aab9e8..3fb062f 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 |