From 18111568fbc0eb451da379df92016a1e7d996718 Mon Sep 17 00:00:00 2001 From: Clemens John Date: Sun, 4 Aug 2013 16:56:08 +0000 Subject: [PATCH] Remove code duplicates and move adding of ipv6 addr to better place in script. --- bsp/default/root_file_system/etc/configurator.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/bsp/default/root_file_system/etc/configurator.sh b/bsp/default/root_file_system/etc/configurator.sh index 35520ac..456e4a1 100644 --- a/bsp/default/root_file_system/etc/configurator.sh +++ b/bsp/default/root_file_system/etc/configurator.sh @@ -139,19 +139,15 @@ elif [ $CRAWL_METHOD == "hash" ]; then err "The router is not assigned to a router in Netmon" err "Trying to assign the router" assign_router - if [[ $AUTOADD_IPV6_ADDRESS = "1" ]]; then - autoadd_ipv6_address - fi else err "The router is already assigned to a router in Netmon" - if [[ $AUTOADD_IPV6_ADDRESS = "1" ]]; then - autoadd_ipv6_address - fi - fi fi +if [[ $AUTOADD_IPV6_ADDRESS = "1" ]]; then + autoadd_ipv6_address +fi + if [[ $SCRIPT_SYNC_HOSTNAME = "1" ]]; then sync_hostname fi -