🌴 Sync 2026-10-12 12:02:15

This commit is contained in:
github-actions[bot] committed 2026-10-12 12:02:15 +08:00
1 parent 1b64546588
commit 887e5ac8e3
261 files changed
+52646 -35012

No files matched your search

@@ -85,27 +85,15 @@ case "$ACTION" in
fi
;;
down)
route-pre-down|down)
inst_role=$(uci -q get openvpn."$ovpn_instance".role)
# Clear the mapped network device because the tunnel is offline
if [ "$inst_role" = "server" ] || [ "$inst_role" = "client" ]; then
uci -q delete openvpn."$ovpn_instance".devname
uci commit openvpn
# Clean application stop via standard system manager signals
if start-stop-daemon -K -q -p "$PID_FILE" -t 2>/dev/null; then
logger -t openvpn-luci "Hotplug: Stopping DDNS service for ${ovpn_instance} because tunnel is down."
start-stop-daemon -K -q -p "$PID_FILE" 2>/dev/null
fi
rm -f "$PID_FILE"
# SERVER: DDNS SERVICE STOP
if [ "$inst_role" = "server" ]; then
# Clean application stop via standard system manager signals
if start-stop-daemon -K -q -p "$PID_FILE" -t 2>/dev/null; then
logger -t openvpn-luci "Hotplug: Stopping DDNS service for ${ovpn_instance} because tunnel is down."
start-stop-daemon -K -q -p "$PID_FILE" 2>/dev/null
fi
rm -f "$PID_FILE"
fi
;;
esac
exit 0