blob: 895496daf9aaabd7210fe776d09a1d4a3f444ac9 [file] [log] [blame]
Gabriele M5b33c6c2017-01-22 22:50:02 +01001#!/sbin/sh
2
3. /tmp/backuptool.functions
4
5list_files() {
6cat <<EOF
7bin/su
8etc/init/superuser.rc
9xbin/su
10EOF
11}
12
13case "$1" in
14 backup)
15 list_files | while read FILE DUMMY; do
16 backup_file $S/"$FILE"
17 done
18 ;;
19 restore)
20 list_files | while read FILE REPLACEMENT; do
21 R=""
22 [ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
23 restore_file $S/"$FILE" "$R"
24 done
25 ;;
26 pre-backup)
27 # Stub
28 ;;
29 post-backup)
30 # Stub
31 ;;
32 pre-restore)
33 # Stub
34 ;;
35 post-restore)
36 # Stub
37 ;;
38esac