From dcc1ad35cd39ae966dd8b67ce44758c4e40a83b2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 17 Oct 2015 16:03:35 +0200 Subject: [PATCH] radvd: Fix missing function radvd_clear This function used to clear the configuration file but was for some reason missing. The new function has a slightly more descriptive name. Signed-off-by: Michael Tremer --- src/functions/functions.radvd | 10 +++++++++- src/network-radvd-config | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/functions/functions.radvd b/src/functions/functions.radvd index a2daec3..4e41160 100644 --- a/src/functions/functions.radvd +++ b/src/functions/functions.radvd @@ -35,9 +35,17 @@ radvd_update() { service_start radvd } -radvd_write_config() { +radvd_clear_config() { + log DEBUG "Clearing radv daemon configuration file" + config_header "radv daemon configuration file" > ${RADVD_CONFIGFILE} + return ${EXIT_OK} +} + +radvd_write_config() { + radvd_clear_config + # Write the configuration for all zones. local zone for zone in $(zones_get_local); do diff --git a/src/network-radvd-config b/src/network-radvd-config index fbf7e79..e9809e1 100644 --- a/src/network-radvd-config +++ b/src/network-radvd-config @@ -28,7 +28,7 @@ case "${1}" in ;; stop) # Clear all contents in the configuration file. - radvd_clear + radvd_clear_config ;; esac -- 2.47.3