]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Make calling modprobe look prettier.
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 6 Mar 2009 19:51:28 +0000 (13:51 -0600)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 6 Mar 2009 19:51:28 +0000 (13:51 -0600)
dracut-functions

index 77857a4de813f642f746b869fdd1ed1c81614b11..1a2d28c98669d8343979ebdc17434996e13a1707 100755 (executable)
@@ -195,7 +195,7 @@ instmods() {
     while (($# > 0)); do
        mod=${1%.ko}
        case $mod in
-           =*) # This introduces 2 incompatible menaings for =* arguments
+           =*) # This introduces 2 incompatible meanings for =* arguments
                 # to instmods.  We need to decide which one to keep.
                 if [ "$mod" = "=ata" -a -f $srcmods/modules.block ] ; then 
                         instmods $mpargs $(egrep 'ata|ahci' "${srcmods}/modules.block")
@@ -207,8 +207,9 @@ instmods() {
                ;;
            --*) mpargs+=" $mod";;
            *)  mod=${mod##*/}
-                modprobe $mpargs --ignore-install --set-version $kernel --show-depends $mod \
-               2>/dev/null |while read cmd modpath options; do
+                modprobe $mpargs --ignore-install --set-version $kernel \
+                   --show-depends $mod 2>/dev/null | \
+                   while read cmd modpath options; do
                    [[ $cmd = insmod ]] || continue
                    modname=${modpath##*/}
                    modname=${modname%.ko}