sm8450-common: rootdir: Import kernel related scripts from LA.VENDOR.1.0.r1-15600-WAIPIO.0

Change-Id: I3a3f582550f668fced12e84d7ae0ddedac45d712
This commit is contained in:
Arian
2024-05-22 02:07:52 +02:00
parent fe921f1062
commit 3b63e5b6d6
10 changed files with 1168 additions and 11 deletions

View File

@@ -0,0 +1,27 @@
#!/vendor/bin/sh
#=============================================================================
# Copyright (c) 2021 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#=============================================================================
write_with_check() {
local i=60
while [ $i -gt 0 ]
do
if [ -f "$1" ]; then
break
fi
sleep 1
i=$(($i-1))
done
if [ ! -f "$1" ]; then
exit 1
fi
echo $2 > $1
}
write_with_check "$1" "$2"