• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mods updater-script needs help [Root only]

Hey, sorry I crashed a little early last night :).

So, a couple of quick questions / observations:

1. This script will be run from a custom recovery, yes? If so, do you need to make sure that the /data partition is mounted (I don't remember if it's auto-mounted or not) for your backups to the /data/media area?

2. You don't need the semi-colons at the end of the shell script lines. You can use those in a shell script if you want to separate two commands on one line for a shell script. They're still needed in an edify updater-script file, of course.

3. You could do your backup of the fota and misc partitions directly to the /data/media/0/partition_Backup directory instead of moving the files later...saves you a few steps (but think about my earlier question about whether or not /data is already mounted)

Otherwise, it looks pretty straight-forward :).
 
Back
Top Bottom