set_router() {
    new_gateway="$new_routers"
    unset new_routers
}


# Do nothing if network module is disbled
if ! zs network status | grep DISABLED; then
    case $reason in
        BOUND|REBOOT|RENEW|REBIND|TIMEOUT)
            set_router
            ;;
        *)
            ;;
    esac
fi

