diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-09-15 21:35:19 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-09-15 21:35:19 +0000 |
commit | 9f46426b5c4de5bede256261e92625b86ec33c57 (patch) | |
tree | 9498c33e54969fe544353584c3c469f6f42c55c8 /sys-apps/module-init-tools/files | |
parent | New version. Update patch to quiet output when called from devfsd (diff) | |
download | gentoo-2-9f46426b5c4de5bede256261e92625b86ec33c57.tar.gz gentoo-2-9f46426b5c4de5bede256261e92625b86ec33c57.tar.bz2 gentoo-2-9f46426b5c4de5bede256261e92625b86ec33c57.zip |
New version. Update patch to quiet output when called from devfsd
Diffstat (limited to 'sys-apps/module-init-tools/files')
-rw-r--r-- | sys-apps/module-init-tools/files/digest-module-init-tools-0.9.14 | 2 | ||||
-rw-r--r-- | sys-apps/module-init-tools/files/module-init-tools-0.9.14-be-quiet-for-devfsd.patch | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/sys-apps/module-init-tools/files/digest-module-init-tools-0.9.14 b/sys-apps/module-init-tools/files/digest-module-init-tools-0.9.14 new file mode 100644 index 000000000000..8bf829852565 --- /dev/null +++ b/sys-apps/module-init-tools/files/digest-module-init-tools-0.9.14 @@ -0,0 +1,2 @@ +MD5 b97a2c6226934fade702bd79c5211cab module-init-tools-0.9.14.tar.bz2 115751 +MD5 2c0cca3ef6330a187c6ef4fe41ecaa4d modutils-2.4.25.tar.bz2 220530 diff --git a/sys-apps/module-init-tools/files/module-init-tools-0.9.14-be-quiet-for-devfsd.patch b/sys-apps/module-init-tools/files/module-init-tools-0.9.14-be-quiet-for-devfsd.patch new file mode 100644 index 000000000000..93d0aae9a30d --- /dev/null +++ b/sys-apps/module-init-tools/files/module-init-tools-0.9.14-be-quiet-for-devfsd.patch @@ -0,0 +1,57 @@ +--- module-init-tools-0.9.14/modprobe.c.orig 2003-09-15 22:41:32.252740832 +0200 ++++ module-init-tools-0.9.14/modprobe.c 2003-09-15 23:10:44.895298664 +0200 +@@ -1148,6 +1148,7 @@ int main(int argc, char *argv[]) + int strip_vermagic = 0; + int strip_modversion = 0; + int ignore_proc = 0; ++ int set_config_file = 0; + enum noexists_response noexists = NOEXISTS_ERROR; + enum exists_response exists = EXISTS_ERROR; + unsigned int i, num_modules; +@@ -1184,8 +1185,12 @@ int main(int argc, char *argv[]) + buf.release[sizeof(buf.release)-1] = '\0'; + break; + case 'C': ++ /* We should not add this to the environment if we might ++ * still change it below (hack for old modutils compatibility) + add_to_env_var("-C"); + add_to_env_var(optarg); ++ */ ++ set_config_file = 1; + config = optarg; + break; + case 'D': +@@ -1294,16 +1299,27 @@ int main(int argc, char *argv[]) + modprobe with -C /etc/modules.conf or /etc/modules.devfs, + to work. FIXME. */ + /* Modern devfsd or variants should use -Q explicitly in 2.6. */ +- if (config && !dump_only && strncmp(argv[optind], "/dev/", 5) == 0) { +- if (strcmp("/etc/modules.conf", config) == 0) { +- quiet = 1; +- config = NULL; +- } else if (strcmp("/etc/modules.devfs", config) == 0) { +- config = MODPROBE_DEVFSD_CONF; ++ if (!quiet && config && !dump_only && strncmp(argv[optind], "/dev/", 5) == 0) { ++ if (strcmp("/etc/modules.conf", config) == 0 ++ || strcmp("/etc/modules.devfs", config) == 0 ++ || strcmp(MODPROBE_DEVFSD_CONF, config) == 0) { ++ add_to_env_var("-Q"); + quiet = 1; ++ ++ if (strcmp("/etc/modules.conf", config) == 0) ++ config = NULL; ++ else ++ config = MODPROBE_DEVFSD_CONF; + } + } + ++ if (set_config_file && !dump_only) { ++ /* Ok, now add the config file to the MODPROBE_OPTIONS ++ * environment variable */ ++ add_to_env_var("-C"); ++ add_to_env_var(config); ++ } ++ + if (dump_only) { + struct module_command *commands = NULL; + struct module_options *modoptions = NULL; |