use gs-common insert module script
Bug: 243763292 Test: boot to home Change-Id: I0c99d0475af3036197413abf9344d343f761d071
This commit is contained in:
parent
f803c049b6
commit
876031a635
5 changed files with 26 additions and 96 deletions
22
init.display.sh
Executable file
22
init.display.sh
Executable 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