On Mon, Jun 04, 2001 at 12:07:44PM -0700, Tom Rini wrote: > 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 you deserve a serious lart for suggesting something so hideously insecure. ln -s /etc/passwd /var/tmp/airport <wait> cat /etc/passwd oh my! something like this should go in /var/run. same thing goes for the previous poster. this type of thing goes in /var/run, if you must use tmp always use tempfile(1) or mktemp(1) to create your temporary file. -- Ethan Benson http://www.alaska.net/~erbenson/
Attachment:
pgpzp4AIzTdYK.pgp
Description: PGP signature