From: Chih-Wei Huang Date: Tue, 17 Jan 2017 05:11:33 +0000 (+0800) Subject: 0-auto-detect: don't load all sound/core modules X-Git-Tag: android-x86-6.0-r3~3 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fbootable-newinstaller.git;a=commitdiff_plain;h=c7c157a4b123cb8e3b2ce51fe1369dd869ae2ca8;hp=ecd7f3d3c86e3f14b0a885788e906434fdceff45 0-auto-detect: don't load all sound/core modules To avoid possible misusing codec issues. --- diff --git a/initrd/scripts/0-auto-detect b/initrd/scripts/0-auto-detect index eda25d4..de9b754 100644 --- a/initrd/scripts/0-auto-detect +++ b/initrd/scripts/0-auto-detect @@ -1,6 +1,6 @@ # # By Chih-Wei Huang -# Last updated 2016/08/14 +# Last updated 2017/01/17 # # License: GNU Public License # We explicitely grant the right to use the scripts @@ -15,7 +15,7 @@ auto_detect() sort -r /lib/modules/`uname -r`/modules.alias | \ sed -n 's/^alias *\([^ ]*\) *\(.*\)/\1)busybox modprobe \2;;/p' >> $tmp echo 'esac; done; }' >> $tmp - for f in $(grep drm_kms /lib/modules/`uname -r`/modules.dep | cut -d. -f1); do + for f in $(grep -Eh "drm_kms|sound.core" /lib/modules/`uname -r`/modules.dep | cut -d. -f1); do sed -i "/$(basename $f | sed 's/-/_/g')/d" $tmp done source $tmp