On systems which lacks any IPv6 configured zone, radvd would be
started with an empty configuration file and crashes which will
brick the system startup and results in a frozen system.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
routes=$(echo ${routes})
# Reload radvd configuration
- [[ "${proto}" = "ipv6" ]] && radvd_update
+ if [[ "${proto}" = "ipv6" ]] && db_exists "${zone}/ipv6"; then
+ radvd_update
+ fi
# Remove all default routes.
if [ -z "${routes}" ]; then