- #!/sbin/sh
- #
- # /system/addon.d/60-bbs.sh
- #
- . /tmp/backuptool.functions
- list_files() {
- cat <<EOF
- priv-app/com.asksven.betterbatterystats_xdaedition.apk
- EOF
- }
- case "$1" in
- backup)
- list_files | while read FILE DUMMY; do
- backup_file $S/"$FILE"
- done
- ;;
- restore)
- list_files | while read FILE REPLACEMENT; do
- R=""
- [ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
- [ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
- done
- ;;
- pre-backup)
- # Stub
- ;;
- post-backup)
- # Stub
- ;;
- pre-restore)
- # Stub
- ;;
- post-restore)
- # Stub
- ;;
- esac
BetterBatteryStats Backup Script
Posted by Anonymous on Thu 26th Jun 2014 12:36
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.