aboutsummaryrefslogtreecommitdiffstats
path: root/standalone-tools/addonsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'standalone-tools/addonsd.sh')
-rw-r--r--standalone-tools/addonsd.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/standalone-tools/addonsd.sh b/standalone-tools/addonsd.sh
new file mode 100644
index 0000000..90865d0
--- /dev/null
+++ b/standalone-tools/addonsd.sh
@@ -0,0 +1,37 @@
+#!/sbin/sh
+
+. /tmp/backuptool.functions
+
+list_files() {
+cat <<_EOF
+xbin/wg
+xbin/wg-quick
+_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