Changeset 991 for trunk

Show
Ignore:
Timestamp:
08/21/07 07:06:18 (17 months ago)
Author:
aj
Message:

reconstruct PRODUCT from MODALIAS setting.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/etc/openct_usb.in

    r985 r991  
    1313                if test -e $DEVICE 
    1414                then 
     15                        if test -z "$PRODUCT" 
     16                        then 
     17                                V="`echo $MODALIAS |sed -e "s/.*v\(....\).*/\1/g"` 
     18                                P="`echo $MODALIAS |sed -e "s/.*p\(....\).*/\1/g"` 
     19                                D="`echo $MODALIAS |sed -e "s/.*d\(....\).*/\1/g"` 
     20                                PRODUCT="$V/$P/$D" 
     21                        fi 
     22 
    1523                        # if you see two ifdhandlers for one device, then you can 
    1624                        # either comment out the next line here ...