#!/bin/bash # DHCPv4 if [ -n "$DHCP4_NTP_SERVERS" ]; then case "$2" in dhcp4-change) ntpd_conf_new=/etc/ntpd.conf echo "#Generated by NetworkManager dispatcher" > $ntpd_conf_new for ntp_server in $DHCP4_NTP_SERVERS; do echo "server $ntp_server" >> $ntpd_conf_new done ;; esac fi