[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Simple shell scripting



I am creating a bootable usb stick and I need to somehow cycle through
the devices until I get a successful mount.  Right now I'm doing it with
cdrom so I do something like this

mount -t iso9660 /dev/hdb /cd || mount -t iso9660 /dev/hdc /cd

What would be good loop that could do this for me?