]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- don't try to detect devicetype if it's specified
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Mon, 19 Nov 2001 13:00:56 +0000 (13:00 +0000)
committerSebastian Zagrodzki <sebek@zagrodzki.net>
Mon, 19 Nov 2001 13:00:56 +0000 (13:00 +0000)
svn-id: @970

rc.d/init.d/functions.network

index ab46d88afbc240d65067e8cd36a32fdf7a99d9ee..f84ef2dc4eeeab52557b86198c42a206ec06e5d2 100755 (executable)
@@ -1,5 +1,5 @@
 #
-# $Id: functions.network,v 1.65 2001/10/11 18:49:00 baggins Exp $
+# $Id: functions.network,v 1.66 2001/11/19 13:00:56 zagrodzki Exp $
 # 
 # This is not a shell script; it provides functions to network scripts
 # that source it.
@@ -244,7 +244,10 @@ fi
 setup_ip_param ()
 {
 # detect network device type (ie. dummy, eth for dummy0, eth0 ..)
-DEVICETYPE=$(echo $DEVICE | awk ' { gsub(/[0-9]*\.?[0-9]*$/,NUL); print $0 } ')
+if [ -z "$DEVICETYPE" ]; then
+       DEVICETYPE=$(echo $DEVICE | awk ' { gsub(/[0-9]*\.?[0-9]*$/,NUL); print $0 } ')
+fi
+
 # real name of device (ie. is eth0 for eth0,eth0:1,eth0:alias)
 DEVICE=$(echo $DEVICE | awk ' { gsub(/:.*$/,NUL); print $0 } ')
 
This page took 0.06167 seconds and 4 git commands to generate.