OSDN Git Service

0-auto-detect: disable modules auto loading
authorChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 14 Aug 2016 05:00:46 +0000 (13:00 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 14 Aug 2016 05:00:46 +0000 (13:00 +0800)
Now we use ueventd to load modules. It more cleaner and reliable.
If you'd like to keep using the original modules auto loading,
add AUTO_LOAD=old to the kernel cmdline.

initrd/scripts/0-auto-detect

index 0caa34a..0b6296a 100644 (file)
@@ -1,6 +1,6 @@
 #
 # By Chih-Wei Huang <cwhuang@linux.org.tw>
-# Last updated 2016/07/21
+# Last updated 2016/08/14
 #
 # License: GNU Public License
 # We explicitely grant the right to use the scripts
@@ -23,7 +23,7 @@ auto_detect()
 
 load_modules()
 {
-       if [ -z "$FOUND" ]; then
+       if [ "$AUTO_LOAD" = "old" ]; then
                auto_detect
        fi