dslinux/vendors/Nintendo/common/rc.d network
stsp
stsp at user.in-berlin.de
Tue Jul 4 00:29:25 CEST 2006
Update of /cvsroot/dslinux/dslinux/vendors/Nintendo/common/rc.d
In directory antilope:/tmp/cvs-serv14115/rc.d
Modified Files:
network
Log Message:
Add support for setting DNS servers in /etc/rc.conf.
Patch by Tobias Gruetzmacher.
Index: network
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/common/rc.d/network,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- network 23 Jun 2006 09:50:48 -0000 1.8
+++ network 3 Jul 2006 22:29:23 -0000 1.9
@@ -68,6 +68,17 @@
ifconfig nds $ifconfig_args up
sleep 1
route add default gw $gateway
+
+ if [ -n "$dns1" ]
+ then
+ echo "1st DNS: $dns1"
+ echo "nameserver $dns1" > /etc/resolv.conf
+ if [ -n "$dns2" ]
+ then
+ echo "2nd DNS: $dns2"
+ echo "nameserver $dns2" >> /etc/resolv.conf
+ fi
+ fi
else
echo "Not configuring network:"
echo "No static configuration found and DHCP is disabled."
More information about the dslinux-commit
mailing list