kmod: symlink /etc/modprobe.d to /storage/.config/modprobe.d

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-11-17 22:38:21 +01:00
parent feb31df3b4
commit 07592d1e8b
2 changed files with 3 additions and 24 deletions

View File

@ -67,6 +67,9 @@ post_makeinstall_target() {
ln -sf /usr/bin/kmod $INSTALL/sbin/modinfo
ln -sf /usr/bin/kmod $INSTALL/sbin/modprobe
mkdir -p $INSTALL/etc
ln -sf /storage/.config/modprobe.d $INSTALL/etc/modprobe.d
# add user modprobe.d dir
mkdir -p $INSTALL/usr/config/modprobe.d
}

View File

@ -1,24 +0,0 @@
From 0079354fada76965346bf626cbd40c9ac25f0ce3 Mon Sep 17 00:00:00 2001
From: Stefan Saraev <stefan@saraev.ca>
Date: Sat, 21 Sep 2013 21:14:31 +0300
Subject: [PATCH] support /storage/.config/modprobe.d
---
libkmod/libkmod.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c
index ef83e31..a0d4bda 100644
--- a/libkmod/libkmod.c
+++ b/libkmod/libkmod.c
@@ -62,6 +62,7 @@ static const char *default_config_paths[] = {
SYSCONFDIR "/modprobe.d",
"/run/modprobe.d",
"/lib/modprobe.d",
+ "/storage/.config/modprobe.d",
NULL
};
--
1.7.2.5