]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - modules.d/95iscsi/iscsiroot
removed trailing whitespaces
[thirdparty/dracut.git] / modules.d / 95iscsi / iscsiroot
index 6cb545bafbf2e62281bd7a49a299fb7984eda2a0..7439af380079d62d6acda59e89b22efbb294152f 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # This implementation is incomplete: Discovery mode is not implemented and
 # the argument handling doesn't follow currently agreed formats. This is mainly
-# because rfc4173 does not say anything about iscsi_initiator but open-iscsi's 
+# because rfc4173 does not say anything about iscsi_initiator but open-iscsi's
 # iscsistart needs this.
 #
 
@@ -18,7 +18,7 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
 # Huh? Empty $2?
 [ -z "$2" ] && exit 1
 
-# Huh? Empty $3? This isn't really necessary, since NEWROOT isn't 
+# Huh? Empty $3? This isn't really necessary, since NEWROOT isn't
 # used here. But let's be consistent
 [ -z "$3" ] && exit 1
 
@@ -69,7 +69,7 @@ arg=$(getargs rd.iscsi.in.username iscsi_in_username=)
 arg=$(getargs rd.iscsi.in.password iscsi_in_password=)
 [ -n "$arg" ] && iscsi_in_password=$arg
 
-handle_netroot() 
+handle_netroot()
 {
     iroot=$1
     # override conf/commandline options by dhcp root_path
@@ -78,7 +78,7 @@ handle_netroot()
     IFS=@
     set $iroot
     if [ $# -gt 1 ]; then
-        authinfo=$1; shift 
+        authinfo=$1; shift
         iroot=$*
     # allow empty authinfo to allow having an @ in iscsi_target_name like this:
     # netroot=iscsi:@192.168.1.100::3260::iqn.2009-01.com.example:testdi@sk
@@ -92,13 +92,13 @@ handle_netroot()
                 iscsi_in_password=$4
             fi
         fi
-    fi  
+    fi
 
     IFS="$OLDIFS"
 
     local v=${iroot}:
     local i
-    set -- 
+    set --
     while [ -n "$v" ]; do
         if [ "${v#\[*:*:*\]:}" != "$v" ]; then
         # handle IPv6 address
@@ -106,7 +106,7 @@ handle_netroot()
             i="${i##\[}"
             set -- "$@" "$i"
             v=${v#\[$i\]:}
-        else                
+        else
             set -- "$@" "${v%%:*}"
             v=${v#*:}
         fi
@@ -183,8 +183,8 @@ handle_netroot()
 }
 
 # loop over all netroot parameter
-if getarg netroot; then 
-    for nroot in $(getargs netroot); do 
+if getarg netroot; then
+    for nroot in $(getargs netroot); do
         [ "${netroot%%:*}" = "iscsi" ] || continue
         handle_netroot ${nroot##iscsi:}
     done