Initial commit.
This commit is contained in:
14
dhcp/dhclient.conf
Normal file
14
dhcp/dhclient.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
#
|
||||
# DHCP Client Configuration file.
|
||||
# see /usr/share/doc/dhclient/dhclient.conf.example
|
||||
# see dhclient.conf(5) man page
|
||||
#
|
||||
# Send client identifier as "hardware-type.link-layer address" (e.g. "1.c2.23.7d.c3.52.2c")
|
||||
# Required in environments where a bridge might be clobbering the forwarded
|
||||
# packet's MAC address (common in Wifi, Docsis, or ADSL bridging scenarios)
|
||||
# see dhcp-options(5) man page for 'dhcp-client-identifier'
|
||||
# see dhcp-eval(5) man page for 'hardware'
|
||||
send dhcp-client-identifier = hardware;
|
||||
|
||||
timeout 300;
|
||||
retry 60;
|
||||
20
dhcp/dhclient.d/chrony.sh
Executable file
20
dhcp/dhclient.d/chrony.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
SERVERFILE=$SAVEDIR/chrony.servers.$interface
|
||||
|
||||
chrony_config() {
|
||||
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() {
|
||||
if [ -f "$SERVERFILE" ]; then
|
||||
rm -f "$SERVERFILE"
|
||||
/usr/libexec/chrony-helper update-daemon || :
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user