Much simpler:

    grep -qF $router_list $DEVICE_ID