]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
SYSCTLDEVICE definition moved when ${DEVICE} is known
authorJacek Konieczny <jajcus@pld-linux.org>
Thu, 13 Dec 2012 17:17:53 +0000 (17:17 +0000)
committerJacek Konieczny <jajcus@pld-linux.org>
Thu, 13 Dec 2012 17:17:53 +0000 (17:17 +0000)
svn-id: @12604

lib/ifup

index 013c3558b99d4874e33119e1170c0e85ac07bb41..d0d2f9d3033420f554e7a85477d7b99a295e2d37 100755 (executable)
--- a/lib/ifup
+++ b/lib/ifup
@@ -24,8 +24,6 @@ need_hostname
 # 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 @@ IPSETUP=no
 # set all major variables
 setup_ip_param
 
+SYSCTLDEVICE=$(echo ${DEVICE} | sed 's/\./\//g')
+
 OTHERSCRIPT="/lib/rc-scripts/ifup-${DEVICETYPE}"
 
 if [ -x "$OTHERSCRIPT" ]; then
This page took 0.040141 seconds and 4 git commands to generate.