Browse Source

luci-app-ssr-plus: Fixed an issue with the official latest master bran… (#1453)

* luci-app-ssr-plus:Fixed an issue with the official latest master branch not working.

luci-base: conversion of ucitrack handling from uci to json.
See the official commit for details:
https://github.com/openwrt/luci/commit/d5c413d2853fde0d5cec98641606a0a30f93281c

* luci-app-ssr-plus:Fixed an issue with the official latest master branch not working.

luci-base: conversion of ucitrack handling from uci to json.
See the official commit for details:
https://github.com/openwrt/luci/commit/d5c413d2853fde0d5cec98641606a0a30f93281c
zxlhhyccc 1 year ago
parent
commit
6f6e9ae329

+ 2 - 0
luci-app-ssr-plus/root/etc/uci-defaults/luci-ssr-plus

@@ -1,10 +1,12 @@
 #!/bin/sh
 
 uci -q batch <<-EOF >/dev/null
+	[ -e "/etc/config/ucitrack" ] && {
 	delete ucitrack.@shadowsocksr[-1]
 	add ucitrack shadowsocksr
 	set ucitrack.@shadowsocksr[-1].init=shadowsocksr
 	commit ucitrack
+	}
 
 	delete firewall.shadowsocksr
 	set firewall.shadowsocksr=include

+ 4 - 0
luci-app-ssr-plus/root/usr/share/ucitrack/luci-app-ssr-plus.json

@@ -0,0 +1,4 @@
+{
+	"config": "shadowsocksr",
+	"init": "shadowsocksr"
+}