dslinux/vendors/Nintendo/common/rc.d network
stsp
stsp at user.in-berlin.de
Wed Aug 9 00:32:21 CEST 2006
Update of /cvsroot/dslinux/dslinux/vendors/Nintendo/common/rc.d
In directory antilope:/tmp/cvs-serv9679
Modified Files:
network
Log Message:
Don't use intermediate variable for arguments to iwconfig.
I hope this will help with special characters in essids somewhat
until we get a proper fix.
Remove unused variable.
Index: network
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/common/rc.d/network,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- network 6 Aug 2006 14:12:42 -0000 1.14
+++ network 8 Aug 2006 22:32:19 -0000 1.15
@@ -15,27 +15,24 @@
if [ -n "$essid" ]
then
- iwconfig_args=""
-
echo "Configuring wireless interface:"
echo "ESSID: $essid"
- iwconfig_args="$iwconfig_args essid $essid"
+ iwconfig nds essid "$essid"
+ sleep 1
if [ -n "$channel" ]
then
echo "Channel: $channel"
- iwconfig_args="$iwconfig_args channel $channel"
+ iwconfig nds channel "$channel"
+ sleep 1
fi
if [ -n "$wepkey" ]
then
echo "Setting wepkey."
- iwconfig_args="$iwconfig_args key $wepkey"
+ iwconfig nds key "$wepkey"
+ sleep 1
fi
-
- iwconfig nds $iwconfig_args
- sleep 1
-
else
echo "Not configuring network:"
echo "No ESSID defined. See /etc/rc.defaults!"
@@ -57,7 +54,6 @@
then
ifconfig_args=""
- route_args=""
echo "Configuring network:"
echo "IP: $ip"
@@ -78,7 +74,7 @@
ifconfig nds $ifconfig_args up
sleep 1
- route add default gw $gateway
+ route add default gw "$gateway"
if [ -n "$dns1" ]
then
More information about the dslinux-commit
mailing list