From 7adfc6b043bcc9d7ba96832c114e76c218a07cb5 Mon Sep 17 00:00:00 2001 From: lazy <76811944+lazyoop@users.noreply.github.com> Date: Wed, 26 Mar 2025 22:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=87=E4=BB=BD`config.tom?= =?UTF-8?q?l`=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原备份的文件名为config_backup.toml太过于通用,修改后的添加et_前缀用来确定是et的配置文件 --- luci-app-easytier/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/luci-app-easytier/Makefile b/luci-app-easytier/Makefile index 9599332..8ad40cc 100644 --- a/luci-app-easytier/Makefile +++ b/luci-app-easytier/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_VERSION:=2.2.4 -PKG_RELEASE:= +PKG_RELEASE:=1 LUCI_TITLE:=LuCI support for EasyTier LUCI_DEPENDS:=+kmod-tun @@ -23,9 +23,9 @@ if [ -f /etc/config/easytier ] ; then mv -f /etc/config/easytier /tmp/easytier_backup fi if [ -f /etc/easytier/config.toml ] ; then - echo "备份easytier配置文件/etc/easytier/config.toml到/tmp/config_backup.toml" + echo "备份easytier配置文件/etc/easytier/config.toml到/tmp/et_config_backup.toml" echo "不重启设备之前再次安装luci-app-easytier 配置不丢失,不用重新配置" - mv -f /etc/easytier/config.toml /tmp/config_backup.toml + mv -f /etc/easytier/config.toml /tmp/et_config_backup.toml fi if [ -f /etc/easytier/et.db ] ; then echo "备份easytier数据库/etc/easytier/et.db到/tmp/et_backup.db" @@ -47,9 +47,9 @@ if [ -f /tmp/easytier_backup ] ; then mv -f /tmp/easytier_backup /etc/config/easytier echo "请前往 VPN - EasyTier 界面进行重启插件" fi -if [ -f /tmp/config_backup.toml ] ; then - echo "发现easytier备份配置文件/tmp/config_backup.toml,开始恢复到/etc/easytier/config.toml" - mv -f /tmp/config_backup.toml /etc/easytier/config.toml +if [ -f /tmp/et_config_backup.toml ] ; then + echo "发现easytier备份配置文件/tmp/et_config_backup.toml,开始恢复到/etc/easytier/config.toml" + mv -f /tmp/et_config_backup.toml /etc/easytier/config.toml echo "请前往 VPN - EasyTier 界面进行重启插件" fi if [ -f /tmp/et_backup.db ] ; then