]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
modprobe cache: cache only wanted params
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Jun 2013 22:19:50 +0000 (22:19 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Jun 2013 22:19:50 +0000 (22:19 +0000)
svn-id: @12695

rc.d/rc.sysinit

index 102f92630fea976473af63486ca267b635e7a0d7..e321c9a87cf92bcc318ab2ee4d5f4956089098bf 100755 (executable)
@@ -45,7 +45,9 @@ modprobe_c() {
                echo "$modprobe_c_cache"
                return
        fi
-       modprobe_c_cache=$(modprobe -c)
+
+       # filter only what is wanted by this script: aliases and options
+       modprobe_c_cache=$(modprobe -c | grep -E '^(alias|options)')
 }
 
 # parse kernel cmdline
This page took 0.393151 seconds and 4 git commands to generate.