2018-06-21 14:10:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2018-07-25 15:32:01 +00:00
|
|
|
MODULES_LIST=${DIB_MODPROBE_BLACKLIST:-""}
|
2018-06-21 14:10:53 +00:00
|
|
|
|
|
|
|
for mod_name in $MODULES_LIST; do
|
|
|
|
echo "blacklist $mod_name" >> /etc/modprobe.d/blacklist.conf
|
|
|
|
done
|