busybox: add (support for) user modprobe.d dir in /storage/.config

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-11-30 09:27:15 +01:00
parent a258836a32
commit 2fd8795926
2 changed files with 14 additions and 0 deletions

View File

@ -46,3 +46,6 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`"
mkdir -p $INSTALL/etc/modprobe.d
cp $PKG_DIR/modprobe.d/* $INSTALL/etc/modprobe.d
# add user modprobe.d dir
mkdir -p $INSTALL/usr/config/modprobe.d

View File

@ -0,0 +1,11 @@
diff -Naur busybox-1.18.0/modutils/modprobe.c busybox-1.18.0.patch/modutils/modprobe.c
--- busybox-1.18.0/modutils/modprobe.c 2010-11-22 21:43:22.000000000 +0100
+++ busybox-1.18.0.patch/modutils/modprobe.c 2010-11-30 08:46:36.961605729 +0100
@@ -560,6 +560,7 @@
read_config("/etc/modprobe.conf");
read_config("/etc/modprobe.d");
+ read_config("/storage/.config/modprobe.d");
if (ENABLE_FEATURE_MODUTILS_SYMBOLS && G.need_symbols)
read_config("modules.symbols");
load_modules_dep();