SVN: geninitrd/trunk/functions

arekm arekm at pld-linux.org
Thu Mar 29 19:12:09 CEST 2012


Author: arekm
Date: Thu Mar 29 19:12:08 2012
New Revision: 12525

Modified:
   geninitrd/trunk/functions
Log:
Handle case when no modaliases were found.

Modified: geninitrd/trunk/functions
==============================================================================
--- geninitrd/trunk/functions	(original)
+++ geninitrd/trunk/functions	Thu Mar 29 19:12:08 2012
@@ -193,6 +193,11 @@
 		j=$(dirname $i)
 		modaliases="$modaliases $(cat $j/modalias)"
 	done
+
+	if [ -z "$modaliases" ]; then
+		return
+	fi
+
 	echo $modaliases | xargs modprobe --set-version $kernel -aRn | awk '
 		BEGIN { skip_modules[notexisting_module]=""; modules[1]=""; xhci=""; ehci=""; ohci=""; uhci="" }
 		{


More information about the pld-cvs-commit mailing list