OSDN Git Service

add AUTO option, set it to 1 to force auto-detect
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 23 Jul 2009 05:11:09 +0000 (13:11 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 23 Jul 2009 05:11:09 +0000 (13:11 +0800)
initrd/scripts/0-auto-detect

index b17c23a..f64cc64 100644 (file)
@@ -106,7 +106,7 @@ detect_hardware()
 
 load_modules()
 {
-       detect_hardware
+       [ -z "$AUTO" ] && detect_hardware
        if [ $? -eq 0 ]; then
                for m in $PREDEV; do
                        modprobe $m