[NTLUG:Discuss] MontaVista Embedded Linux Question

Russell Lemburg cplusruss at gmail.com
Sun Jun 8 15:29:14 CDT 2008


Hello friends

I'm running a MontaVista Linux rig where I'm trying to get the status of the
USB (whether it's connected or not) from dmesg or anything like it.

dmesg | grep -q "SCSI Device .... at ... " > bootProperties

I'm trying to figure out how to get a simple "0" or "1" based on whether
it's connected or not and send that out to Serial using minicom or
something.  Since I'm a Linux newbie and I'm not too terribly proficient in
Bash scripting, can someone lead me in the right path?  Is the first idea
doable?

Thanks!

-- 

Russell Lemburg
IC Technology, Inc.
1900 Preston Road, #267-303
Plano, TX 75093 USA
(214) 460-8504
cplusruss at gmail.com


More information about the Discuss mailing list