31383970c7
This element will replace modprobe-blacklist element. It wil still have the blacklist functionality, but it also adds the feature of passing a complete file with settings to the modprobe.d directory. Adding this functionality, that will allow elements that depends on this module, to just copy the specified files to the final directory. Change-Id: I9a44f7d11520b8b1e604956d3c1db2fc7e2bf457
14 lines
275 B
Bash
Executable File
14 lines
275 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
MODULES_LIST=${DIB_MODPROBE_BLACKLIST:?"Please set DIB_MODPROBE_BLACKLIST."}
|
|
|
|
for mod_name in $MODULES_LIST; do
|
|
echo "blacklist $mod_name" >> /etc/modprobe.d/blacklist.conf
|
|
done
|