SVN: rc-scripts/trunk/rc.d/rc.sysinit

glen glen at pld-linux.org
Tue Aug 25 12:25:07 CEST 2009


Author: glen
Date: Tue Aug 25 12:25:07 2009
New Revision: 10493

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
- use shell construct

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Tue Aug 25 12:25:07 2009
@@ -101,7 +101,8 @@
 		echo '' # make sure there is a LF at the end
 	) | while read module args; do
 		[ -z "$module" ] && continue
-		args=$(echo $args | awk '{ gsub(/#.*/, ""); print; }')
+		# strip comments
+		args=${args%%#*}
 		modprobe -s $module -- $args
 	done
 }


More information about the pld-cvs-commit mailing list