summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/update-modules/update-modules-1.0/update-modules
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/update-modules/update-modules-1.0/update-modules')
-rwxr-xr-xmeta/recipes-kernel/update-modules/update-modules-1.0/update-modules15
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-kernel/update-modules/update-modules-1.0/update-modules b/meta/recipes-kernel/update-modules/update-modules-1.0/update-modules
index 7ee7df8192..99040a1ab4 100755
--- a/meta/recipes-kernel/update-modules/update-modules-1.0/update-modules
+++ b/meta/recipes-kernel/update-modules/update-modules-1.0/update-modules
@@ -103,8 +103,8 @@ createfile() {
103$HEADER" 103$HEADER"
104# 104#
105# Please do not edit this file directly. If you want to change or add 105# Please do not edit this file directly. If you want to change or add
106# anything please take a look at the files in /etc/modutils and read 106# anything please take a look at the files in /etc/modutils, /etc/modules-load.d
107# the manpage for update-modules. 107# and read the manpage for update-modules.
108# 108#
109EOF 109EOF
110} 110}
@@ -161,6 +161,7 @@ fi
161createfile "$MODCONFTMPFILE" 161createfile "$MODCONFTMPFILE"
162createfile "$MODULESTMPFILE" 162createfile "$MODULESTMPFILE"
163 163
164# well we're using /etc/modprobe.d/*.conf instead of /etc/modutils/*.conf anyway..
164for cfg in /etc/modutils/* $CONF ; do 165for cfg in /etc/modutils/* $CONF ; do
165 if [ -f "$cfg" ]; then # this check is necesarry to skip /etc/modutils/archs 166 if [ -f "$cfg" ]; then # this check is necesarry to skip /etc/modutils/archs
166 if echo $cfg | grep -q '\.dpkg-[a-z]*\|~$' ; then 167 if echo $cfg | grep -q '\.dpkg-[a-z]*\|~$' ; then
@@ -168,6 +169,16 @@ for cfg in /etc/modutils/* $CONF ; do
168 elif echo $cfg | grep -q '\.conf$' ; then 169 elif echo $cfg | grep -q '\.conf$' ; then
169 addfile "$cfg" "$MODCONFTMPFILE" 170 addfile "$cfg" "$MODCONFTMPFILE"
170 else 171 else
172 echo "Please migrate your $cfg file to /etc/modules-load.d/*.conf"
173 addfile "$cfg" "$MODULESTMPFILE"
174 fi
175 fi
176done
177for cfg in /etc/modules-load.d/*.conf; do
178 if [ -f "$cfg" ]; then # this check is necesarry to skip weird entries
179 if echo $cfg | grep -q '\.dpkg-[a-z]*\|~$' ; then
180 true
181 else
171 addfile "$cfg" "$MODULESTMPFILE" 182 addfile "$cfg" "$MODULESTMPFILE"
172 fi 183 fi
173 fi 184 fi