From owner-freebsd-questions@FreeBSD.ORG Mon Sep 5 21:34:58 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5EE716A41F for ; Mon, 5 Sep 2005 21:34:58 +0000 (GMT) (envelope-from maarfree@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29A9E43D48 for ; Mon, 5 Sep 2005 21:34:57 +0000 (GMT) (envelope-from maarfree@xs4all.nl) Received: from maarten.sandersatkins.nl (a80-127-55-226.adsl.xs4all.nl [80.127.55.226]) by smtp-vbr11.xs4all.nl (8.13.3/8.13.3) with ESMTP id j85LYtQN028266 for ; Mon, 5 Sep 2005 23:34:55 +0200 (CEST) (envelope-from maarfree@xs4all.nl) From: Maarten Sanders To: FreeBSD Questions Content-Type: text/plain Date: Mon, 05 Sep 2005 23:34:55 +0200 Message-Id: <1125956095.771.14.camel@maarten> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: pccard, wi0, wep and DHCP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 21:34:58 -0000 Hi, If used to have my wives laptop configured with rc.conf containing: 'ifconfig_wi0="DHCP"' this works and brings up wi0. Since my town is crowded with wardrivers I would like to use wep. Because my wife often inserts the pcmcia card after booting I also like to have pccard enabled. I can manually configure the card to use WEP. dhclient is configured 'out of the box'. What I did after some googling: in /etc/rc.conf I added: pccard_enable="YES" pccard_flags="-z" pccard_ifconfig="DHCP" and I removed: ifconfig_wi0="DHCP" I created a file: /etc/start_if.wi0 ifconfig wi0 nwkey 0xsomehex The wi card is listed in /etc/default/pccard.conf : "BENQ" "AWL100 PCMCIA ADAPTER" config auto "wi" ? insert /etc/pccard_ether $device start remove /etc/pccard_ether $device stop so I think /etc/pccard_ether should be executed on boot/insertion. Now this works not as I expect. When I manually run: /etc/pccard_ether wi0 start /etc/start_if.wi0 is not interpretted and the WEP key is not set so dhclient fails. I guess I am missing a trivial point, but which? Maarten