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 <michael.tremer@ipfire.org>
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
;;
stop)
# Clear all contents in the configuration file.
- radvd_clear
+ radvd_clear_config
;;
esac