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:
parent
772c8465f0
commit
2e49ccaf28
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue