vendor_xiaomi_onyx/proprietary/vendor/bin/init.qti.write.sh
zenin1504 737bba2d3d onyx: Push vendor repo here
Change-Id: If8d0b57acc6b41c28c7a331e41db44d2
Signed-off-by: zenin1504 <me.zenin1504.dev@gmail.com>
2026-06-26 20:21:50 +08:00

28 lines
517 B
Bash
Executable file

#!/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"