SVN: rc-scripts/trunk/lib/ifup

jajcus jajcus at pld-linux.org
Thu Dec 13 18:17:54 CET 2012


Author: jajcus
Date: Thu Dec 13 18:17:53 2012
New Revision: 12604

Modified:
   rc-scripts/trunk/lib/ifup
Log:
SYSCTLDEVICE definition moved when ${DEVICE} is known


Modified: rc-scripts/trunk/lib/ifup
==============================================================================
--- rc-scripts/trunk/lib/ifup	(original)
+++ rc-scripts/trunk/lib/ifup	Thu Dec 13 18:17:53 2012
@@ -24,8 +24,6 @@
 # device name must be ifcfg-somename
 DEV=$1
 
-SYSCTLDEVICE=$(echo ${DEVICE} | sed 's/\./\//g')
-
 [ -z "$DEV" ] && {
 	nls "Usage: %s <device name>" "ifup" >&2
 	exit 1
@@ -66,6 +64,8 @@
 # set all major variables
 setup_ip_param
 
+SYSCTLDEVICE=$(echo ${DEVICE} | sed 's/\./\//g')
+
 OTHERSCRIPT="/lib/rc-scripts/ifup-${DEVICETYPE}"
 
 if [ -x "$OTHERSCRIPT" ]; then


More information about the pld-cvs-commit mailing list