From 41bd617ca91cb83c0263c76409945594767ed101 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 14 Jun 2007 19:48:27 +0000 Subject: [PATCH] Patched hotplug2/hotplug2-modwrap to call modprobe with the given alias if no module was found to match it - fallback accepted upstream --- base/hotplug2/modwrap-fallback.patch | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 base/hotplug2/modwrap-fallback.patch diff --git a/base/hotplug2/modwrap-fallback.patch b/base/hotplug2/modwrap-fallback.patch new file mode 100644 index 000000000..d08be4a17 --- /dev/null +++ b/base/hotplug2/modwrap-fallback.patch @@ -0,0 +1,31 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../hotplug2/modwrap-fallback.patch +# Copyright (C) 2007 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ./linux24_compat/hotplug2-modwrap.c (revision 100) ++++ ./linux24_compat/hotplug2-modwrap.c (working copy) +@@ -122,6 +122,12 @@ + free(module); + free(line); + } ++ ++ if (strcmp(argv[argc - 1], match_alias) == 0) { ++ if (execute(argv)) { ++ ERROR("execute", "Unable to execute: `%s'.", argv[0]); ++ } ++ } + + free(filename); + free(match_alias);