File ntp.NetworkManager of Package ntp

#! /bin/sh
#
# ntp dispatcher script for NetworkManager
#
# Dominique Leuenberger <dimstar@suse.de>
#

case "$2" in
    dhcp4-change)
        # Call netconfig in to reconfigure NTPd with the current time servers
        netconfig modify -s NetworkManager -m ntp <<-EOT
NTPSERVERS='$DHCP4_NTP_SERVERS'
EOT
        ;;
    dhcp6-change)
        netconfig modify -s NetworkManager -m ntp <<-EOT
NTPSERVERS='$DHCP6_NTP_SERVERS'
EOT
        ;;
    *)
        exit 0      
        ;;
esac

openSUSE Build Service is sponsored by