SVN: geninitrd/trunk/geninitrd

glen glen at pld-linux.org
Mon Mar 26 18:46:52 CEST 2012


Author: glen
Date: Mon Mar 26 18:46:52 2012
New Revision: 12517

Modified:
   geninitrd/trunk/geninitrd
Log:
kmod option bug fixed in git

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Mon Mar 26 18:46:52 2012
@@ -472,8 +472,7 @@
 # @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# }
 }
 


More information about the pld-cvs-commit mailing list