hmm, on Tue, Jan 29, 2008 at 11:26:29AM +0100, Johan Fredin said that
> On 08-01-29 11:01, Chris wrote:
> > #!/bin/sh
> >
> >            DEVCLASS=$1
> >            DEVNAME=$2
> >
> >            case $DEVCLASS in
> >            2)
> >                    # disk devices
> >
> >                    disklabel=`/sbin/disklabel $DEVNAME 2>&1 | \
> >                            sed -n '/^label: /s/^label: //p'`
> >                    case $disklabel in
> >                    JetFlash)
> 
> Without ever having played around with hotplugd, I'd try: "JetFlash*)" 
> instead of "JetFlash)" that you have there now.

definitely.  sometimes some devices have space(s) in/after their name.
you could also try outputting the name using logger(1) with
apostrophes to see the spaces...

-f
-- 
because you will burn.

Reply via email to