Skip to content

Commit

Permalink
0.46.051
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Nov 20, 2024
1 parent 9b9f351 commit bb79940
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion luci-app-openclash/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-openclash
PKG_VERSION:=0.46.050
PKG_VERSION:=0.46.051
PKG_MAINTAINER:=vernesong <https://github.com/vernesong/OpenClash>

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
Expand Down
3 changes: 2 additions & 1 deletion luci-app-openclash/root/etc/init.d/openclash
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ start()

enable=$(uci -q get openclash.config.enable)
[ "$enable" != "1" ] && LOG_OUT "Warning: OpenClash Now Disabled, Need Start From Luci Page, Exit..." && SLOG_CLEAN && del_lock && exit 0

service openclash enable
LOG_OUT "OpenClash Start Running..."

config_choose
Expand Down Expand Up @@ -3028,6 +3028,7 @@ stop()

LOG_OUT "Step 6: Delete OpenClash Residue File..."
if [ "$enable" != "1" ]; then
service openclash disable
rm -rf /tmp/clash_last_version >/dev/null 2>&1
rm -rf /tmp/Proxy_Group >/dev/null 2>&1
rm -rf /tmp/rules_name >/dev/null 2>&1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ uci -q set openclash.config.enable=0
uci -q commit openclash
if [ -x "/bin/opkg" ]; then
opkg remove --force-depends --force-remove luci-app-openclash
elif [ -x "/usr/bin/apk" ]; then
apk del luci-app-openclash
fi
LOG_OUT "Installing The New Version, Please Do Not Refresh The Page or Do Other Operations..."
if [ -x "/bin/opkg" ]; then
Expand Down

0 comments on commit bb79940

Please sign in to comment.