From 0c15967fe47ee2af8fe8e56aa6dcd7c1ba24b8c9 Mon Sep 17 00:00:00 2001 From: o2asdv <119470164+o2asdv@users.noreply.github.com> Date: Thu, 22 Dec 2022 21:29:52 +0800 Subject: [PATCH] Update init-settings.sh --- init-settings.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init-settings.sh b/init-settings.sh index 37a7734..66689c0 100644 --- a/init-settings.sh +++ b/init-settings.sh @@ -50,6 +50,14 @@ config interface 'vpn0' option proto 'none' EOF +# Set backup dirs +cat <<'EOF'> /etc/sysupgrade.conf +## This file contains files and directories that should be preserved during an upgrade. + +/data/ +/etc/openvpn/ +EOF + # Add "/etc/rc.local" script cat <<'EOF'> /etc/rc.local #!/bin/bash