summaryrefslogtreecommitdiffhomepage
path: root/cli/addonsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cli/addonsd.sh')
-rw-r--r--cli/addonsd.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/cli/addonsd.sh b/cli/addonsd.sh
new file mode 100644
index 00000000..90865d0c
--- /dev/null
+++ b/cli/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