The try_upgrade should be run before checking whether system
was installed as the read-write mode.
! test -f hd/$asrc/system.img -o -d hd/$asrc/system
set_answer_if_auto $?
adialog --title " Question " --defaultno --yesno \
! test -f hd/$asrc/system.img -o -d hd/$asrc/system
set_answer_if_auto $?
adialog --title " Question " --defaultno --yesno \
for s in `du -sk $files | awk '{print $1}'`; do
size=$(($size+$s))
done
for s in `du -sk $files | awk '{print $1}'`; do
size=$(($size+$s))
done
mkdir -p hd/$asrc
cd hd/$asrc
rm -rf system*
mkdir -p hd/$asrc
cd hd/$asrc
rm -rf system*