]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
kmod option bug fixed in git
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 26 Mar 2012 16:46:52 +0000 (16:46 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 26 Mar 2012 16:46:52 +0000 (16:46 +0000)
svn-id: @12517

geninitrd

index c7e1589f1401b3a6331b2fc6d362e7bb88c52f52..992ac9c0836e414e1212c78013586e343984a0d5 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -472,8 +472,7 @@ modprobe_conf() {
 # @param $1 module name
 modprobe_options() {
        local module=$1
-       # NOTE: module init tools uses "options", kmod uses "option"
-       local options=$(modprobe_conf | awk -vmodule="$module" '{ if ($1 ~ "option" && $2 == module) { for(i=3;i<=NF;i++) printf("%s ",$i); }}')
+       local options=$(modprobe_conf | awk -vmodule="$module" '{ if ($1 == "options" && $2 == module) { for(i=3;i<=NF;i++) printf("%s ",$i); }}')
        echo ${options# }
 }
 
This page took 0.038185 seconds and 4 git commands to generate.