PHP 7.4.33
Preview: chrony.sh Size: 570 B
/home/godevadmin/public_html/upload_images/home/000~ROOT~000/etc/dhcp/dhclient.d/chrony.sh

#!/bin/bash

SERVERFILE=$SAVEDIR/chrony.servers.$interface

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

	rm -f "$SERVERFILE"
	if [ "$PEERNTP" != "no" ]; then
		for server in $new_ntp_servers; do
			echo "$server ${NTPSERVERARGS:-iburst}" >> "$SERVERFILE"
		done
		/usr/libexec/chrony-helper update-daemon || :
	fi
}

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

	if [ -f "$SERVERFILE" ]; then
		rm -f "$SERVERFILE"
		/usr/libexec/chrony-helper update-daemon || :
	fi
}

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
570 B lrwxr-xr-x 2024-11-05 07:44:41
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).