]> git.ipfire.org Git - people/ms/network.git/commitdiff
radvd: Fix missing function radvd_clear
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Oct 2015 14:03:35 +0000 (16:03 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Oct 2015 14:03:35 +0000 (16:03 +0200)
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>
src/functions/functions.radvd
src/network-radvd-config

index a2daec35737ccb60c0c756a6f016043a5ec86b71..4e41160e0343413e6cdd791578a4c54463275ac3 100644 (file)
@@ -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
index fbf7e7908e55173c42ec3a71e09c4c4c8bdf42f4..e9809e164135bcb801703888d65721546f548937 100644 (file)
@@ -28,7 +28,7 @@ case "${1}" in
                ;;
        stop)
                # Clear all contents in the configuration file.
-               radvd_clear
+               radvd_clear_config
                ;;
 esac