change patch so we get the right path

svn path=/nixpkgs/trunk/; revision=5967
This commit is contained in:
Armijn Hemel 2006-07-27 16:23:29 +00:00
parent 4961c5e3e1
commit 9ec98e5d19

View File

@ -41,7 +41,7 @@ diff -rc module-init-tools-3.2.2/depmod.c module-init-tools-3.2.2.new/depmod.c
all = 1;
+ if((module_dir = getenv("MODULE_DIR")) == NULL) {
+ module_dir = "/lib/modules";
+ module_dir = "/lib/modules/";
+ }
+
dirname = NOFAIL(malloc(strlen(basedir)