Booting with AirPort on YDL 2.3

Jussi-Pekka Mantere yellowdog-general@lists.terrasoftsolutions.com
Tue Oct 1 06:42:00 2002


Some tips on getting AirPort to load at startup before rc.local is run  
under YDL 2.3 (with 2.4.x kernel.)

In the doc  
http://www.yellowdoglinux.com/support/solutions/ydl_general/ 
airport24.shtml it is suggested that AirPort networking be loaded from  
/etc/rc.d/rc.local. This is not always optimal, as some services  
require networking to be up before rc.local is run.

To bring up AirPort in the proper boot sequence, the following setup  
works:

- load AirPort support in rc.modules:

$ cat > /etc/rc.modules << EOF
#! /bin/sh

/sbin/modprobe airport
EOF

- make it executable:

$ chmod a+x /etc/rc.modules

- create the interface config file with AirPort network settings:

$ cat > /etc/sysconfig/network-scripts/ifcfg-eth1 << EOF
NAME=localhost
DEVICE=eth1
IPADDR=
BOOTPROTO=dhcp
ONBOOT=yes
NETMASK=
GATEWAY=
ESSID="My Network Name"
KEY=DEADBEAF
EOF

All available AirPort interface options are listed in  
/etc/sysconfig/network-scripts/ifup-wireless .

If any of the above files exist, it's probably a good idea to use vi  
instead of cat...