summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2006-08-18 13:19:45 +0000
committerbrooks <brooks@FreeBSD.org>2006-08-18 13:19:45 +0000
commit91d01c20f98f4fd16a5958ff8be5c841cffd7200 (patch)
treecc87c6cf5601748f0f13f160ecf398b010df90d5 /etc/pccard_ether
parent3f0988c9787703dff83559c01fff2bda38111278 (diff)
downloadFreeBSD-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/pccard_ether')
-rwxr-xr-xetc/pccard_ether2
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.
OpenPOWER on IntegriCloud