[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bcm43xx finally working, with encryption too!!!



On 20 Jan 2006 00:30:26 -0500, Shreyas Ananthan
<shreyas@stallion.umd.edu> wrote:
> Aaron Kerr <Aaron.Kerr@Sun.COM> writes:
>
> <snip>
>
> > While my script is some overly complicated perl that tries to find one
> > of my preferred networks here is what it would look like as simple
> > bourne shell script (last two lines optional depending on network and
> > use as pre-up script or standalone script):
>
> <snip>
>
> > #iwconfig $INTERFACE key 0a1b2c3d4e
> > #dhclient $INTERFACE
> > <END OF SCRIPT>
>
> <snip>
>
> My script works exactly the way you described. My problem is with the
> last line, when I try dhclient. It seems to do an ifconfig down/up
> again, which means I have to run iwlist scan again to get the wireless
> working again. What I want is a way to disable dhclient from doing its
> own ifconfig down/up on eth1 (or eth2 sometimes!), so that the iwlist
> command doesn't have to be run separately on another xterm/console.
>
Try not run dhclient directly. You can configure all you need in
/etc/network/interfaces:
For example:
iface eth1 inet dhcp
  pre-up modprobe ......
  post-up iwlist eth1 scan
  post-up iwconfig eth1 rate 11M
  post-up iwconfig eth1 essid ......
  #post-up iwconfig eth1 key ......

Use "ifup eth1" and "ifdown eth1".

Bin

> Shreyas.
>
>
> --
> To UNSUBSCRIBE, email to debian-powerpc-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>



Reply to: