mirror of https://github.com/kenzok8/small.git
update 2024-11-25 16:19:08
This commit is contained in:
parent
e11e1186d8
commit
5790c1c86f
|
@ -1,6 +1,6 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_VERSION:=1.13.0
|
PKG_VERSION:=1.13.1
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI Support for mihomo
|
LUCI_TITLE:=LuCI Support for mihomo
|
||||||
LUCI_DEPENDS:=+luci-base +mihomo
|
LUCI_DEPENDS:=+luci-base +mihomo
|
||||||
|
|
|
@ -159,8 +159,14 @@ start_service() {
|
||||||
cp -f "$profile_file" "$RUN_PROFILE_PATH"
|
cp -f "$profile_file" "$RUN_PROFILE_PATH"
|
||||||
elif [[ "$profile" == "subscription:"* ]]; then
|
elif [[ "$profile" == "subscription:"* ]]; then
|
||||||
local subscription_section; subscription_section="${profile/subscription:/}"
|
local subscription_section; subscription_section="${profile/subscription:/}"
|
||||||
|
local subscription_name subscription_prefer
|
||||||
|
config_get subscription_name "$subscription_section" "name"
|
||||||
|
config_get subscription_prefer "$subscription_section" "prefer" "remote"
|
||||||
|
log "Use Subscription: $subscription_name."
|
||||||
local subscription_file; subscription_file="$SUBSCRIPTIONS_DIR/$subscription_section.yaml"
|
local subscription_file; subscription_file="$SUBSCRIPTIONS_DIR/$subscription_section.yaml"
|
||||||
update_subscription "$subscription_section"
|
if [ "$subscription_prefer" == "remote" ] || [[ "$subscription_prefer" == "local" && ! -f "$subscription_file" ]]; then
|
||||||
|
update_subscription "$subscription_section"
|
||||||
|
fi
|
||||||
if [ ! -f "$subscription_file" ]; then
|
if [ ! -f "$subscription_file" ]; then
|
||||||
log "Subscription file not found."
|
log "Subscription file not found."
|
||||||
log "Exiting..."
|
log "Exiting..."
|
||||||
|
|
Loading…
Reference in New Issue