From: <smi...@us...> - 2003-12-31 21:26:59
|
Update of /cvsroot/devil-linux/build/config/etc/init.d In directory sc8-pr-cvs1:/tmp/cvs-serv2405/config/etc/init.d Modified Files: network Log Message: some some other defaults some modifications to get wireless support running Index: network =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/init.d/network,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- network 31 Dec 2003 20:51:58 -0000 1.26 +++ network 31 Dec 2003 21:26:53 -0000 1.27 @@ -77,11 +77,6 @@ OPTIONS="$OPTIONS ${DHCLIENT_SCRIPT_EXE:+-c $DHCLIENT_SCRIPT_EXE}" OPTIONS="$OPTIONS $DHCLIENT_ADDITIONAL_OPTIONS" - # FIXME: do we really need this anymore? - guess not therefore disabling it for now - #if [ ! -d /etc/dhcpc ]; then - # echo "/etc/dhcpc not found, creating it" - # mkdir /etc/dhcpc - #fi fi echo "Starting DHCP client daemon on interface $DEVICE" @@ -123,8 +118,15 @@ [ -n "$KEY" ] && OPTIONS="$OPTIONS key $KEY" echo -n "Setting wireless options for interface $DEVICE" + ifconfig $DEVICE up iwconfig $DEVICE $OPTIONS evaluate_retval + + # try to force loading of the settings + iwconfig $DEVICE commit &> /dev/null + + # we need to wait a little bit, until the card is initialized + sleep 2 } setup_interface () { |