Received: (at submit) by bugs.debian.org; 21 Jun 2001 04:55:31 +0000 From aj@azure.humbug.org.au Wed Jun 20 23:55:31 2001 Return-path: Received: from cpe-61-9-140-237.vic.bigpond.net.au (azure.humbug.org.au) [::ffff:61.9.140.237] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 15CwV8-0006MC-00; Wed, 20 Jun 2001 23:55:30 -0500 Received: from aj by azure.humbug.org.au with local (Exim 3.12 #1 (Debian)) id 15CwUt-0001N9-00; Thu, 21 Jun 2001 14:55:15 +1000 Date: Thu, 21 Jun 2001 14:55:15 +1000 To: submit@bugs.debian.org Cc: Tom Rini Subject: Automatic detection of hardware interface Message-ID: <20010621145515.B5055@azure.humbug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organisation: Lacking X-PGP: http://azure.humbug.org.au/~aj/aj_key.asc From: Anthony Towns Delivered-To: submit@bugs.debian.org Package: ifupdown Severity: wishlist (Tom, FYI only) ifupdown should support automatically determining the physical interface given the logical interface (or some hint anyway), as well as vice-versa. Using the message below as an example, you should be able to say something like: ifup =airport and have a script detect that the "airport" card is actually "eth1"; and then continue normal processing, so you eventually end up bring "eth1" up in the "home" configuration (eg). That generalises to servers where eth0/eth1 could get mixed up (eg), and might make things easier for proper ppp support later. Maybe. ----- Forwarded message from Tom Rini ----- Date: Wed, 20 Jun 2001 13:02:48 -0700 From: Tom Rini To: debian-powerpc@lists.debian.org Subject: Slightly newer airport sleep bits for pmud Message-ID: <20010620130248.A26006@opus.bloom.county> Hey all, after talking to someone else, I found out not everyone has their airport modules loaded with autoclean, So I've appended my current version of the script I use which should work around this. And I moved it into /etc/power/pwrctl-local since no official kernels support sleep yet on these machines. Here it is: logger=/usr/bin/logger case "$1" in sleep) # Currently the airport driver isn't happy with sleep, so we # must remove it if [ "`lsmod | grep airport 2>/dev/null`" ]; then AIRPORT=`cat /proc/net/wireless | grep eth | sed 's/^ //' | cut -d : -f 1` ifdown $AIRPORT tempfile -n /var/run/airport || { $logger -p daemon.error -t pwrctl "$0: cannot create tempfile" exit 1 } echo $AIRPORT > /var/run/airport # Make sure we get airport, even if it's not autoprobed. rmmod airport && rmmod orinoco && rmmod hermes fi ;; wakeup) [ -f /var/run/airport ] && { modprobe -k airport ifup `cat /var/run/airport` rm /var/run/airport } ;; *) ;; esac ----- End forwarded message -----