#!/bin/bash -efu if ! [ -e /dev/ttyUSB0 ]; then udevadm trigger sleep 5 fi [ -e /dev/ttyUSB0 ]