HEX
Server: Apache/2.4.67 (Debian)
System: Linux hosting103 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User: muzikaecom (1013)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //etc/NetworkManager/dispatcher.d/ntpsec
#!/bin/sh

case "$2" in
	up|vpn-up)
		if [ "$DHCP4_REQUESTED_NTP_SERVERS" != "1" ] &&
		   [ "$DHCP6_REQUESTED_NTP_SERVERS" != "1" ]; then
			exit 0
		fi

		# shellcheck disable=SC2034
		reason=BOUND
		;;
	down|vpn-down)
		# shellcheck disable=SC2034
		reason=RELEASE
		;;
	*)
		exit 0
		;;
esac

test -f /etc/dhcp/dhclient-exit-hooks.d/ntpsec || exit 0
. /etc/dhcp/dhclient-exit-hooks.d/ntpsec