fix: Reload config after commit to ensure runtime consistency

This commit is contained in:
Andrey Petelin
2025-09-11 13:37:49 +05:00
parent 5a2ffcfd38
commit 38fcb59ed7

View File

@@ -108,7 +108,7 @@ start() {
dnsmasq_add_resolver dnsmasq_add_resolver
fi fi
uci_set "podkop" "main" "shutdown_correctly" 0 uci_set "podkop" "main" "shutdown_correctly" 0
uci commit "podkop" uci commit "podkop" && config_load "$PODKOP_CONFIG"
} }
stop_main() { stop_main() {
@@ -154,7 +154,7 @@ stop() {
fi fi
stop_main stop_main
uci_set "podkop" "main" "shutdown_correctly" 1 uci_set "podkop" "main" "shutdown_correctly" 1
uci commit "podkop" uci commit "podkop" && config_load "$PODKOP_CONFIG"
} }
reload() { reload() {