#!/bin/bash # $Id: eth1.homeap.sh.txt 518 2006-09-11 06:03:35Z tas $ wepkey_homeap="00000000000000000000000000" weppwd_homeap="passwordtext" ifconfig eth1 down ifconfig eth1 up iwconfig eth1 essid "homeap" # iwconfig eth1 key ${wepkey_homeap} iwconfig eth1 key s:${weppwd_homeap} iwconfig eth1 channel 2 iwconfig eth1 rate 11M iwconfig eth1 ap any for n in `seq 1 2`; do sleep 1; iwconfig eth1 channel 2; done # for baselayout-1.11.15-r3 # /sbin/dhclient -q -cf /etc/dhcp/dhclient.conf -1 -sf /lib/rcscripts/net.modules.d/helpers.d/dhclient-ifconfig -pf /var/run/dhclient-eth1.pid -q eth1 # for baselayout-1.12.4-r7 /sbin/dhclient -q -cf /etc/dhcp/dhclient.conf -e PEER_ROUTERS=yes -e PEER_DNS=yes -e PEER_NTP=yes -e IF_METRIC=2000 -q -1 -pf /var/run/dhclient-eth1.pid eth1