common: vendor: allow device to use customized post-boot script

Some devices may want to override these default settings
and use its own customized post-boot script.

Set vendor.post_boot.custom to "true" from the device tree to override.

Change-Id: If1a71b489710be39df250eda65450d7e4c3a9a13
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Juhyung Park 2022-02-13 16:36:43 +09:00
parent 772c8465f0
commit 2e49ccaf28
3 changed files with 15 additions and 0 deletions

View File

@ -31,6 +31,11 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#=============================================================================
if [[ "$(getprop vendor.post_boot.custom)" == "true" ]]; then
echo "Device overrides post_boot, skipping $0"
exit 0
fi
if [ -f /sys/devices/soc0/chip_family ]; then
chipfamily=`cat /sys/devices/soc0/chip_family`
fi

View File

@ -27,6 +27,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
if [[ "$(getprop vendor.post_boot.custom)" == "true" ]]; then
echo "Device overrides post_boot, skipping $0"
exit 0
fi
function 8953_sched_dcvs_eas()
{
if [ $KernelVersionA -ge 4 ] && [ $KernelVersionB -ge 19 ]; then

View File

@ -30,6 +30,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#=============================================================================
if [[ "$(getprop vendor.post_boot.custom)" == "true" ]]; then
echo "Device overrides post_boot, skipping $0"
exit 0
fi
if [ -f /sys/devices/soc0/soc_id ]; then
platformid=`cat /sys/devices/soc0/soc_id`
fi