$HEADER"
#
# Please do not edit this file directly. If you want to change or add
-# anything please take a look at the files in /etc/modutils and read
-# the manpage for update-modules.
+# anything please take a look at the files in /etc/modutils, /etc/modules-load.d
+# and read the manpage for update-modules.
#
EOF
}
createfile "$MODCONFTMPFILE"
createfile "$MODULESTMPFILE"
+# well we're using /etc/modprobe.d/*.conf instead of /etc/modutils/*.conf anyway..
for cfg in /etc/modutils/* $CONF ; do
if [ -f "$cfg" ]; then # this check is necesarry to skip /etc/modutils/archs
if echo $cfg | grep -q '\.dpkg-[a-z]*\|~$' ; then
true
elif echo $cfg | grep -q '\.conf$' ; then
addfile "$cfg" "$MODCONFTMPFILE"
+ else
+ echo "Please migrate your $cfg file to /etc/modules-load.d/*.conf"
+ addfile "$cfg" "$MODULESTMPFILE"
+ fi
+ fi
+done
+for cfg in /etc/modules-load.d/*.conf; do
+ if [ -f "$cfg" ]; then # this check is necesarry to skip weird entries
+ if echo $cfg | grep -q '\.dpkg-[a-z]*\|~$' ; then
+ true
else
addfile "$cfg" "$MODULESTMPFILE"
fi