Hot patch for speedtest

This commit is contained in:
Russel Yasol
2025-03-14 11:46:14 +08:00
parent 11f9ee2bbf
commit aac8079bc6
64 changed files with 366 additions and 87 deletions

View File

@@ -913,6 +913,17 @@ check_profile() {
local pdp_type=$(uci -q get quecprofiles.$profile_index.pdp_type)
local imei=$(uci -q get quecprofiles.$profile_index.imei)
local ttl=$(uci -q get quecprofiles.$profile_index.ttl)
# Check if profile is paused
local paused=$(uci -q get quecprofiles.$profile_index.paused)
paused="${paused:-0}" # Default to not paused if not set
# Skip applying paused profiles
if [ "$paused" = "1" ]; then
log_message "Profile '$profile_name' is paused, skipping application" "info"
update_track "paused" "Profile is paused. Resume the profile to apply settings." "$profile_name" "0"
return 0
fi
# Default pdp_type to "IP" if not specified
pdp_type="${pdp_type:-IP}"