dslinux/vendors/Nintendo/common/rc.d network

stsp stsp at user.in-berlin.de
Mon Oct 2 10:43:50 CEST 2006


Update of /cvsroot/dslinux/dslinux/vendors/Nintendo/common/rc.d
In directory antilope:/tmp/cvs-serv9586

Modified Files:
	network 
Log Message:
Source custom configuration file.

Patch by John S. Skogtvedt:

  This is to allow using custom profiles.
  I'm writing a dialog-based script that allows creating and managing
  profiles, creating profiles based on a scan, loading profiles matching
  nets found by a scan, etc.
  See http://www.dslinux.org/index.php?showtopic=1460&st=20&p=19997&#entry19997



Index: network
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/common/rc.d/network,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- network	8 Aug 2006 22:32:19 -0000	1.15
+++ network	2 Oct 2006 08:43:48 -0000	1.16
@@ -3,6 +3,10 @@
 [ -e /etc/rc.defaults ] && . /etc/rc.defaults
 [ -e /etc/rc.conf ] && . /etc/rc.conf
 
+# Source a custom configuration file if specified
+# in the environment.
+[ -n "$NETWORK_CONFIG" ] && . "$NETWORK_CONFIG"
+
 case "$1" in
 	start)
 		ifconfig lo up




More information about the dslinux-commit mailing list