From owner-freebsd-mobile Sat Jul 24 23:22: 9 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id EC5951504C for ; Sat, 24 Jul 1999 23:22:01 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.3/8.9.3) id XAA89173 for mobile@FreeBSD.ORG; Sat, 24 Jul 1999 23:21:08 -0700 (PDT) (envelope-from obrien) Message-ID: <19990724232108.A89132@nuxi.com> Date: Sat, 24 Jul 1999 23:21:08 -0700 From: "David O'Brien" To: mobile@FreeBSD.ORG Subject: pccardd does not wait for interface to be up with "-z" Reply-To: obrien@NUXI.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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