Remove code duplicates and move adding of ipv6 addr to better place in script.

This commit is contained in:
Clemens John 2013-08-04 16:56:08 +00:00
parent ef04addec9
commit 18111568fb
1 changed files with 4 additions and 8 deletions

View File

@ -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