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