blob: ce564296b70b8d5eacdea9893a418c42fa6fa7f9 [file] [log] [blame]
ReStranger3d63ad72025-09-30 04:05:06 +03001#=============================================================================
2# Copyright (c) 2020-2022 Qualcomm Technologies, Inc.
3# All Rights Reserved.
4# Confidential and Proprietary - Qualcomm Technologies, Inc.
5#
6# Copyright (c) 2009-2012, 2014-2019, The Linux Foundation. All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions are met:
10# * Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer.
12# * Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution.
15# * Neither the name of The Linux Foundation nor
16# the names of its contributors may be used to endorse or promote
17# products derived from this software without specific prior written
18# permission.
19#
20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31#=============================================================================
32
33if [ -f /sys/devices/soc0/soc_id ]; then
34 platformid=`cat /sys/devices/soc0/soc_id`
35fi
36
37case "$platformid" in
38 "518" | "561" | "585")
39 /vendor/bin/sh /vendor/bin/init.kernel.post_boot-bengal.sh
40 ;;
41 "586")
42 /vendor/bin/sh /vendor/bin/init.kernel.post_boot-bengal-iot.sh
43 ;;
44 *)
45 echo "***WARNING***: Invalid SoC ID\n\t No postboot settings applied!!\n"
46 ;;
47esac
48