diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2006-08-18 13:19:45 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2006-08-18 13:19:45 +0000 |
commit | fed4d6b3942320d845a5bb1b3a2f572aa061a769 (patch) | |
tree | cc87c6cf5601748f0f13f160ecf398b010df90d5 /etc/pccard_ether | |
parent | 729385283501853346b5a60df6b141dc15d98c45 (diff) | |
download | src-fed4d6b3942320d845a5bb1b3a2f572aa061a769.tar.gz src-fed4d6b3942320d845a5bb1b3a2f572aa061a769.zip |
Don't try to start interfaces that don't exist.
Reported by: Dominique Goncalves <dominique.goncalves at gmail.com>
Notes
Notes:
svn path=/head/; revision=161437
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-x | etc/pccard_ether | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether index 3fb062f7ff14..d2a24fafe24b 100755 --- a/etc/pccard_ether +++ b/etc/pccard_ether @@ -67,6 +67,8 @@ checkauto() pccard_ether_start() { + ifexists $ifn || exit 1 + if [ -z "$rc_force" -a -x /usr/bin/grep ]; then if ifconfig $ifn | grep -s '[<,]UP[,>]' > /dev/null 2>&1; then # Interface is already up, so ignore it. |