Change bootup shell script to duplicate config files

Change bootup shell script to:
- Copy config files
- change the new config to correct ownship
- set flag to indicate copy is completed.

Change-Id: Ie00059ba49ac0d59b2c41b35640593347521dec3
This commit is contained in:
Sooraj Sasindran 2015-03-20 18:37:02 -06:00
parent 49b9de19ff
commit 0c440edd5d
2 changed files with 15 additions and 0 deletions

View File

@ -189,6 +189,11 @@ on boot
# Allow access for CCID command/response timeout configuration
chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout
# Mark the copy complete flag to not completed
write /data/misc/radio/copy_complete 0
chown radio radio /data/misc/radio/copy_complete
chmod 0660 /data/misc/radio/copy_complete
# msm specific files that need to be created on /data
on post-fs-data
# Create directory for TZ Apps

View File

@ -247,3 +247,13 @@ case "$emmc_boot"
fi
;;
esac
#
# Make modem config folder and copy firmware config to that folder
#
rm -rf /data/misc/radio/modem_config
mkdir /data/misc/radio/modem_config
chmod 660 /data/misc/radio/modem_config
cp -r /firmware/image/modem_pr/mcfg/configs/* /data/misc/radio/modem_config
chown -hR radio.radio /data/misc/radio/modem_config
echo 1 > /data/misc/radio/copy_complete