Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 1999 23:21:08 -0700
From:      "David O'Brien" <obrien@FreeBSD.ORG>
To:        mobile@FreeBSD.ORG
Subject:   pccardd does not wait for interface to be up with "-z"
Message-ID:  <19990724232108.A89132@nuxi.com>

next in thread | raw e-mail | index | archive | help
Ok, I've tried again on my Sony Vaio 505TX w/3c589d.  I applied the
patches below, configured for a static IP address and rebooted.  My
output:

    -------------------------  About to run pccardd --------------------
    pccard: -z flag 
    -------------------------  Ran pccardd  ----------------------------
    ---------------[ before ifconfig processing ]-----------------------
    [ output of ifconfig -a showing ep0 does *not* exist ]
    
    ifconfig ep0 inet 192.168.2.3 netmask 255.255.255.0
    ifconfig: interface ep0 does not exist

    [ output of ifconfig -a showing ep0 does *not* exist ]
    -----------------[ after ifconfig processing ]-----------------------
    route: writing to routing socket: Network is unreachable
      .
      .
    login:  ep0: utp/bnc[*UPT*] address 00:60:08:8a:22:d7

So as you can see ``pccard -z'' isn't working properly.  IMHO this is
very important to fix or the standard FreeBSD DHCP configuration will not
work.



Index: rc.network
===================================================================
RCS file: /home/ncvs/src/etc/rc.network,v
retrieving revision 1.50
diff -u -r1.50 rc.network
--- rc.network	1999/07/16 09:26:52	1.50
+++ rc.network	1999/07/25 06:00:50
@@ -50,6 +50,8 @@
 	    fi
     done
 
+echo "-----------------[ before ifconfig processing ]-----------------------"
+ifconfig -a
     # Set up all the network interfaces, calling startup scripts if needed
     if [ "x${network_interfaces}" = "xauto" ]; then
 	    network_interfaces="`ifconfig -l`"
@@ -67,6 +69,7 @@
 		    if [ X"${ifconfig_args}" = X"DHCP" ]; then
 			     ${dhcp_program} ${dhcp_flags} ${ifn}
 		    else
+			     echo ifconfig ${ifn} ${ifconfig_args}
 			     ifconfig ${ifn} ${ifconfig_args}
 		    fi
 		    showstat=true
@@ -95,6 +98,8 @@
 		    ifconfig ${ifn}
 	    fi
     done
+ifconfig -a
+echo "-----------------[ after ifconfig processing ]-----------------------"
 
     # Initialize IP filtering using ipfw
     echo ""


Index: rc.pccard
===================================================================
RCS file: /home/ncvs/src/etc/rc.pccard,v
retrieving revision 1.15
diff -u -r1.15 rc.pccard
--- rc.pccard	1999/07/07 01:26:55	1.15
+++ rc.pccard	1999/07/24 02:16:06
@@ -1,4 +1,4 @@
-#!/bin/sh -
+#!/bin/sh -x
 #	PC-card startup script
 #	$Id: rc.pccard,v 1.15 1999/07/07 01:26:55 hosokawa Exp $
 
@@ -12,5 +12,7 @@
 		pccardd_flags="$pccardd_flags -f $pccard_conf"
 	fi
 	echo -n "Enable PC-card." 
-	pccardd $pccardd_flags 2>&1 > /var/log/pccardd.debug &
+echo "-------------------------  About to run pccardd --------------------"
+	pccardd -z $pccardd_flags 2>&1 > /var/log/pccardd.debug &
+echo "-------------------------  Ran pccardd  ----------------------------"
 fi


Index: pccardd.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/pccardd.c,v
retrieving revision 1.4
diff -u -r1.4 pccardd.c
--- pccardd.c	1999/07/23 01:46:47	1.4
+++ pccardd.c	1999/07/24 02:08:07
@@ -74,6 +74,7 @@
 			break;
 		case 'z':
 			delay = 1;
+fprintf(stderr, "\npccardd: -z flag\n\n" );
 			break;
 		case ':':
 			die("no config file argument");


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990724232108.A89132>