You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
519 B
39 lines
519 B
8 years ago
|
#!/sbin/sh
|
||
|
|
||
|
. /tmp/backuptool.functions
|
||
|
|
||
|
list_files() {
|
||
|
cat <<EOF
|
||
|
bin/su
|
||
|
etc/init/superuser.rc
|
||
|
xbin/su
|
||
|
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"
|
||
|
restore_file $S/"$FILE" "$R"
|
||
|
done
|
||
|
;;
|
||
|
pre-backup)
|
||
|
# Stub
|
||
|
;;
|
||
|
post-backup)
|
||
|
# Stub
|
||
|
;;
|
||
|
pre-restore)
|
||
|
# Stub
|
||
|
;;
|
||
|
post-restore)
|
||
|
# Stub
|
||
|
;;
|
||
|
esac
|