Make the ci script to wait for device