1#! /vendor/bin/sh 2 3# 4# Copy qcril.db if needed for RIL 5# 6if [ -f /vendor/radio/qcril_database/qcril.db -a ! -f /data/vendor/radio/qcril.db ]; then 7 cp /vendor/radio/qcril_database/qcril.db /data/vendor/radio/qcril.db 8 chown -h radio.radio /data/vendor/radio/qcril.db 9fi 10echo 1 > /data/vendor/radio/db_check_done 11 12# 13# Make modem config folder and copy firmware config to that folder for RIL 14# 15if [ -f /data/vendor/radio/ver_info.txt ]; then 16 prev_version_info=`cat /data/vendor/radio/ver_info.txt` 17else 18 prev_version_info="" 19fi 20 21cur_version_info=`cat /firmware/verinfo/ver_info.txt` 22if [ ! -f /firmware/verinfo/ver_info.txt -o "$prev_version_info" != "$cur_version_info" ]; then 23 rm -rf /data/vendor/radio/modem_config 24 mkdir /data/vendor/radio/modem_config 25 chmod 770 /data/vendor/radio/modem_config 26 cp -r /firmware/image/modem_pr/mcfg/configs/* /data/vendor/radio/modem_config 27 chown -hR radio.radio /data/vendor/radio/modem_config 28 cp /firmware/verinfo/ver_info.txt /data/vendor/radio/ver_info.txt 29 chown radio.radio /data/vendor/radio/ver_info.txt 30fi 31cp /firmware/image/modem_pr/mbn_ota.txt /data/vendor/radio/modem_config 32chown radio.radio /data/vendor/radio/modem_config/mbn_ota.txt 33echo 1 > /data/vendor/radio/copy_complete 34