Server IP : 192.168.23.10  /  Your IP : 18.117.145.67
Web Server : Apache
System : Linux echo.premieradvertising.com 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64
User : rrrallyteam ( 1049)
PHP Version : 8.1.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/postgresql-setup/../my.cnf.d/../dhcp/dhclient.d/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //etc/postgresql-setup/../my.cnf.d/../dhcp/dhclient.d/chrony.sh
#!/usr/bin/bash

CHRONY_SOURCEDIR=/run/chrony-dhcp
SERVERFILE=$CHRONY_SOURCEDIR/$interface.sources

chrony_config() {
	# Disable modifications if called from a NM dispatcher script
	[ -n "$NM_DISPATCHER_ACTION" ] && return 0

	rm -f "$SERVERFILE"
	if [ "$PEERNTP" != "no" ]; then
		mkdir -p $CHRONY_SOURCEDIR
		for server in $new_ntp_servers; do
			echo "server $server ${NTPSERVERARGS:-iburst}" >> "$SERVERFILE"
		done
		/usr/bin/chronyc reload sources > /dev/null 2>&1 || :
	fi
}

chrony_restore() {
	[ -n "$NM_DISPATCHER_ACTION" ] && return 0

	if [ -f "$SERVERFILE" ]; then
		rm -f "$SERVERFILE"
		/usr/bin/chronyc reload sources > /dev/null 2>&1 || :
	fi
}