diff options
Diffstat (limited to 'addonsu/51-addonsu.sh')
-rw-r--r-- | addonsu/51-addonsu.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/addonsu/51-addonsu.sh b/addonsu/51-addonsu.sh new file mode 100644 index 00000000..4e36c4cd --- /dev/null +++ b/addonsu/51-addonsu.sh @@ -0,0 +1,37 @@ +#!/sbin/sh + +. /tmp/backuptool.functions + +list_files() { +cat <<EOF +bin/su +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" + [ -f "$C/$S/$FILE" -o -L "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R" + done + ;; + pre-backup) + # Stub + ;; + post-backup) + # Stub + ;; + pre-restore) + # Stub + ;; + post-restore) + # Stub + ;; +esac |