diff options
author | brooks <brooks@FreeBSD.org> | 2006-08-18 13:19:45 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2006-08-18 13:19:45 +0000 |
commit | 91d01c20f98f4fd16a5958ff8be5c841cffd7200 (patch) | |
tree | cc87c6cf5601748f0f13f160ecf398b010df90d5 /etc | |
parent | 3f0988c9787703dff83559c01fff2bda38111278 (diff) | |
download | FreeBSD-src-91d01c20f98f4fd16a5958ff8be5c841cffd7200.zip FreeBSD-src-91d01c20f98f4fd16a5958ff8be5c841cffd7200.tar.gz |
Don't try to start interfaces that don't exist.
Reported by: Dominique Goncalves <dominique.goncalves at gmail.com>
Diffstat (limited to 'etc')
-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 3fb062f..d2a24fa 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. |