Airport Autoboot


Subject: Airport Autoboot
From: Philip Good (phil@go2taichi.com)
Date: Sat Nov 11 2000 - 16:43:41 MST


I've come up with a little addition to the network script to pump the airport
if the eth0 boot fails. This is very cool as the airport connection will then
be in place when you boot off of the wired network. This assumes one has
previously done the 'insmod airport.o' somewhere before or in the network
script..

in etc/rc.d/init.d/network after:

 for i in $interfaces; do
  if egrep -L "ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i >/dev/null ; then
   # Probe module to preserve interface ordering
   /sbin/ifconfig $i >/dev/null 2>&1
  else
   action "Bringing up interface $i" ./ifup $i boot
  fi
 done

add:

        if !(ifconfig eth0 | grep UP > /dev/null); then
          echo "booting airport"
          pump -i airport
        fi

this assumes you are using your airport via DCHP. Should be easy to add in a
the boot if you are using ststic IP for your airport connection.

Phil



This archive was generated by hypermail 2a24 : Sat Nov 11 2000 - 16:43:37 MST