Created
January 25, 2017 16:42
-
-
Save invisiblek/bb8b7a7e81d8d2f0b022a138adacc4d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/sh | |
. /tmp/backuptool.functions | |
list_files() { | |
cat <<EOF | |
lib/libaptX-1.0.0-rel-Android21-ARMv7A.so | |
lib/libaptXScheduler.so | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment