garnet: Initial import

Change-Id: Ib229a3a4d2f8a1e602085fad2b6a757f994cdd99
This commit is contained in:
AdarshGrewal
2025-12-24 20:06:53 +05:30
commit 3e85cf266b
2023 changed files with 162066 additions and 0 deletions
+27
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"