A more bashy way:

    if [[ "${overlay_conf}" == *serial* ]]; then