diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/module-init-tools/files/ignore_arch_directory | |
download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/module-init-tools/files/ignore_arch_directory')
-rw-r--r-- | openembedded/packages/module-init-tools/files/ignore_arch_directory | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/openembedded/packages/module-init-tools/files/ignore_arch_directory b/openembedded/packages/module-init-tools/files/ignore_arch_directory new file mode 100644 index 0000000000..2c71043221 --- /dev/null +++ b/openembedded/packages/module-init-tools/files/ignore_arch_directory | |||
@@ -0,0 +1,25 @@ | |||
1 | diff -ruN module-init-tools-3.1-pre6.orig/modprobe.8 module-init-tools-3.1-pre6/modprobe.8 | ||
2 | --- module-init-tools-3.1-pre6.orig/modprobe.8 2004-10-06 02:44:43.000000000 +0200 | ||
3 | +++ module-init-tools-3.1-pre6/modprobe.8 2004-10-09 01:39:01.000000000 +0200 | ||
4 | @@ -30,6 +30,7 @@ | ||
5 | the modules and other files, except for the optional | ||
6 | \fI/etc/modprobe.conf\fR configuration file | ||
7 | (see \fBmodprobe.conf\fR(5)). | ||
8 | +All files in the \fI/etc/modprobe.d/arch/\fR directory are ignored. | ||
9 | .PP | ||
10 | Note that this version of \fBmodprobe\fR does not | ||
11 | do anything to the module itself: the work of resolving symbols | ||
12 | diff -ruN module-init-tools-3.1-pre6.orig/modprobe.c module-init-tools-3.1-pre6/modprobe.c | ||
13 | --- module-init-tools-3.1-pre6.orig/modprobe.c 2004-10-09 01:40:18.000000000 +0200 | ||
14 | +++ module-init-tools-3.1-pre6/modprobe.c 2004-10-09 01:40:11.000000000 +0200 | ||
15 | @@ -1082,6 +1082,10 @@ | ||
16 | { | ||
17 | DIR *dir; | ||
18 | |||
19 | + /* ignore everything in this directory */ | ||
20 | + if (streq(filename, "/etc/modprobe.d/arch")) | ||
21 | + return 1; | ||
22 | + | ||
23 | /* If it's a directory, recurse. */ | ||
24 | dir = opendir(filename); | ||
25 | if (dir) { | ||