]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Avoid error when no configs module.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 13 Jan 2011 20:20:40 +0000 (20:20 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 13 Jan 2011 20:20:40 +0000 (20:20 +0000)
svn-id: @12044

geninitrd

index 97f3d5736ced7dddfae38f783957c980bac442f2..547572c8afd9fa050126179eb58e5d53ef73f964 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -285,7 +285,7 @@ busybox_applet() {
 #
 # Ripped and adjusted for geninitrd from linux-2.6.34/scripts/extract-ikconfig
 extract-ikconfig() {
-       local kofile=$(modinfo -k $kernel -n configs)
+       local kofile=$(modinfo -k $kernel -n configs 2> /dev/null)
        if [ -z "$kofile" ]; then
                return
        fi
This page took 0.039238 seconds and 4 git commands to generate.