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

Re: debian-powerpc: Airport with Titanium Powerbook



On Mon, Jun 04, 2001 at 09:43:32AM +0200, Michel Lanners wrote:

> stuff recently, and it's been working absolutely fine for me. Keep in
> mind that you need to remove the Airport module for now before sleeping
> (in order to power it down, and to avoid amnesia after wakeup).
> 
> Here's what I do in /etc/power/pwrctl (maybe not the best place to do
> it):
[snip]
Here's what I do, which is slightly more verisitle:
sleep)
if [ "`lsmod | grep airport 2>/dev/null`" ]; then
   AIRPORT=`cat /proc/net/wireless | grep eth | sed 's/^  //' | cut -d : -f 1`
   ifdown $AIRPORT
   echo $AIRPORT > /var/tmp/airport
   # make sure it gets written
   sync
   rmmod -a && rmmod -a
fi

wakeup)
...
[ -f /var/tmp/airport ] && {
  ifup `cat /var/tmp/airport`
  rm /var/tmp/airport
}

This make sure we get airport if it's eth0 or eth1 :)

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/



Reply to: