#!/sbin/sh # # Backup and restore proprietary Android system files # C=/tmp/backupdir S=/system V=CyanogenMod-6 PROCEED=1; check_prereq() { if ( ! grep -q "^ro.modversion=.*$V.*" /system/build.prop ); then echo "Not backing up files from incompatible version."; PROCEED=0; fi } check_installscript() { if [ -f "/tmp/.installscript" ]; then echo "/tmp/.installscript found. Skipping backuptool." PROCEED=0; fi } get_files() { cat <