2 # RW Update Script for 3.0 -> 4.0 and 4.0 -> 4.0
3 # Update ode status whenever doing FOTA
4 PATH=/bin:/usr/bin:/sbin:/usr/sbin
5 source /usr/share/upgrade/rw-update-macro.inc
8 ODE_STATE=`vconftool get -t string db/ode/crypto_state`
9 ODE_STATE=${ODE_STATE#*=}
10 ODE_STATE=${ODE_STATE%(*}
12 if [ $ODE_STATE = "notsupported" ]; then
13 vconftool set -f -t string db/ode/crypto_state "unencrypted"
14 elif [ $ODE_STATE = "mounted" ]; then
15 vconftool set -f -t string db/ode/crypto_state "encrypted"
18 if [ -e /opt/etc/ode_footer ]; then
19 touch /opt/etc/.ode_upgrade_started
20 rm -f /opt/etc/ode_footer