Hello. This is my first post to this forum. I've read many of the posts over the last two or three years and I've learned a lot.
I'm creating a live Linux distribution using the
Linux Live Scripts -- just as a hobby project -- and I'm wanting to create an automated way for a user to copy the folders on the boot CD to a connected flash drive. The interface for that function should be a menu listing of the drive or drives. It should display:
- the manufacturer (i.e., Kingston)
- the model (i.e., Data Traveler)
- the capacity in the format "512MB" or "1GB" or "4GB"
- the path (i.e. /mnt/sda1)
The user would select the drive and the copy would begin.
I've got a ton of books and I'm pounding topics like awk and grep into my head, but I'm almost 50 and not as bright as I used to be
. I could probably do it, but I'm about about three months out if I insist on figuring it out on my own. And although that might
build character, if someone has
already created such a script I'd really rather just grab that code and modify it.
LSHW seems like an obvious way to get the device information, but I'm good with any method.
Has anyone out there done such a BASH script already? My Google searches have failed to find one. Thanks in advance for any thoughts or suggestions.
Godz