From 15525f4aa142de4f6f7d78690b84b019193823f1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 2 May 2015 20:22:22 +0000 Subject: [PATCH] dhclient: Fix overwriting functions.zone --- src/functions/functions.dhclient | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/functions/functions.dhclient b/src/functions/functions.dhclient index db23aff6..9409b0b7 100644 --- a/src/functions/functions.dhclient +++ b/src/functions/functions.dhclient @@ -121,18 +121,10 @@ dhclient_write_config() { # Clear configuration file (if any). mkdir -p $(dirname ${config_file}) 2>/dev/null - : > ${file} # Print the header. - ( echo "#" - echo "# This is a dhclient daemon configuration file for ${interface}." - echo "# THIS FILE IS AUTOMATICALLY GENERATED AND WILL OVERWRITE" - echo "# ANY CUSTOM CHANGES!" - echo "#" - echo "# $(date -u)" - echo "#" - echo - ) >> "${config_file}" + config_header "dhclient daemon configuration file for ${interface}" \ + > "${config_file}" # Global options. fwrite "${config_file}" "send vendor-class-identifier \"${vendor}\";" -- 2.47.2