]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- rmmod missing is not fatal
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 29 Aug 2009 23:15:54 +0000 (23:15 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 29 Aug 2009 23:15:54 +0000 (23:15 +0000)
svn-id: @10517

geninitrd

index 91b7d00b7fad5166da93c035f88b87356a0cff04..6674ee34da8d12f3a02e6162f03c5963b9d2ffaf 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -648,8 +648,9 @@ modules_add_linuxrc() {
                        echo "usleep $sleep_var" | add_linuxrc
                fi
                if [ "$module" = "scsi_wait_scan" ]; then
-                       busybox_applet rmmod
-                       echo "rmmod scsi_wait_scan" | add_linuxrc
+                       if [ "$(busybox_applet rmmod 2>/dev/null; echo $?)" = 0 ]; then
+                               echo "rmmod scsi_wait_scan" | add_linuxrc
+                       fi
                fi
 
        done
This page took 0.295609 seconds and 4 git commands to generate.