Adding /etc/modprobe.d folder for module configuration (#397)

* Add a /etc/modprobe.d folder

populated using a config USB stick with folder modprobe

* Add the documentation for the modprobe folder
This commit is contained in:
Maël Kimmerlin
2019-05-08 14:15:48 +03:00
committed by Pascal Vizeli
parent d861ecae6f
commit 5e82060124
6 changed files with 30 additions and 5 deletions

View File

@@ -44,12 +44,21 @@ fi
##
# Modules
if [ -d "${CONFIG_DIR}/modules" ]; then
echo "[Info] Update Modules configuration!"
echo "[Info] Update Modules autoload!"
rm -rf /etc/modules-load.d/*
cp -f ${CONFIG_DIR}/modules/* /etc/modules-load.d/
fi
##
# Modules configuration
if [ -d "${CONFIG_DIR}/modprobe" ]; then
echo "[Info] Update Modules configuration!"
rm -rf /etc/modprobe.d/*
cp -f ${CONFIG_DIR}/modprobe/* /etc/modprobe.d/
fi
##
# Udev
if [ -d "${CONFIG_DIR}/udev" ]; then