From owner-freebsd-current Sun Feb 2 6:19:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 710FF37B401 for ; Sun, 2 Feb 2003 06:19:37 -0800 (PST) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A00543F43 for ; Sun, 2 Feb 2003 06:19:31 -0800 (PST) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 3.36 #1) id 18fKxw-0004y9-00 for freebsd-current@FreeBSD.ORG; Sun, 02 Feb 2003 15:19:24 +0100 Date: Sun, 2 Feb 2003 15:19:24 +0100 From: Oliver Brandmueller To: freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept Message-ID: <20030202141924.GA17831@e-Gitt.NET> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20030201182012.GC97784@e-Gitt.NET> <20030202.064707.11429179.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202.064707.11429179.imp@bsdimp.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Warner. On Sun, Feb 02, 2003 at 06:47:07AM -0700, M. Warner Losh wrote: > devd works for me when I have devices in my machine at boot. It does > run the start script for me. I just confirmed this on my machine. I > put my wi card in, booted and it picked up a dhcp address. > > What script are you trying to run? What does your configuration file > look like? gruftie# uname -a FreeBSD gruftie 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Sat Feb 1 19:55:36 CET 2003 root@gruftie:/usr/obj/usr/src/sys/GRUFTIE i386 (cvsup was just before buildkernel/buildworld - the version before was about 4-5 days old and showed the same effect) In /etc/devd.conf I added the following lines for my Lucent Orinoco Gold Card (which works just fine when I plug in the pccard after the system has started): --- CUT HERE --- attach 50 { device-name "wi[0-9]"; action "/usr/local/etc/netconf/bin/netconf $device-name start"; }; detach 50 { device-name "wi[0-9]"; action "/usr/local/etc/netconf/bin/netconf $device-name stop"; }; --- CUT HERE --- This netconf script (yeah, I know, /usr/local/etc is not a good place for something like that) is something I wrote which get's a bunch of small config files for each known wireless network and then configures the card to the first matching WLAN. This script logs to syslog and so I know it is not even started on bootup, if the card is already plugged in. If I take the pccard out and put it back in again, everything works fine. Any ideas? - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message