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
13 lines
274 B
Bash
Executable File
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
|