use gs-common insert module script
Bug: 243763292 Test: boot to home Change-Id: I077ee2287b60f243e2440ad3f3a55c02d8ad52ad
This commit is contained in:
parent
7649ca0327
commit
a89fbf4892
5 changed files with 26 additions and 96 deletions
22
init.display.sh
Normal file
22
init.display.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/vendor/bin/sh
|
||||
modules_dir=
|
||||
|
||||
for f in /vendor/lib/modules/*/modules.dep /vendor/lib/modules/modules.dep; do
|
||||
if [[ -f "$f" ]]; then
|
||||
modules_dir="$(dirname "$f")"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -z "${modules_dir}" ]]; then
|
||||
echo "Unable to locate kernel modules directory" 2>&1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
panel_drv=`getprop ro.boot.primary_panel_drv`
|
||||
if [[ -z "$panel_drv" ]]; then
|
||||
panel_drv="panel-samsung-emul"
|
||||
fi
|
||||
modprobe -d "${modules_dir}" exynos-drm.ko
|
||||
modprobe -d "${modules_dir}" $panel_drv.ko
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue