This repository has been archived on 2024-07-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
caelebfi 1a5fdc7d59 committing changes in /etc made by "apt install ntp"
Packages with configuration changes:
+ntp 1:4.2.8p15+dfsg-1 armhf

Package changes:
+libevent-core-2.1-7 2.1.12-stable-1 armhf
+libevent-pthreads-2.1-7 2.1.12-stable-1 armhf
+libopts25 1:5.18.16-4 armhf
+ntp 1:4.2.8p15+dfsg-1 armhf
+sntp 1:4.2.8p15+dfsg-1 armhf
2021-12-01 13:23:48 +01:00

13 lines
274 B
Bash
Executable File

#!/bin/sh
old_ntp_servers="unknown and invalid"
new_ntp_servers=$DHCP4_NTP_SERVERS
case "$2" in
up|vpn-up) reason=BOUND; ;;
down|vpn-down) reason=RELEASE; ;;
*) exit 0; ;;
esac
test -f /etc/dhcp/dhclient-exit-hooks.d/ntp || exit 0
. /etc/dhcp/dhclient-exit-hooks.d/ntp