Changeset 1148


Ignore:
Timestamp:
04/14/09 15:44:36 (3 years ago)
Author:
aj
Message:

Stanislav Brabec:

  • Uses HAL_PROP_SMART_CARD_READER_DEVICE_FILE defined in FDI patches above instead of guessing the device node name.
  • Restricts access to the group. Requires a change in Makefiles to replace @USER@ and @GROUP@
  • Removes deprecated access to /proc/bus/usb.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/etc/openct.hald.in

    r1043 r1148  
    44        $HAL_PROP_USB_DEVICE_REVISION_BCD`" 
    55 
    6 DEVICE="`printf /dev/bus/usb/%03u/%03u \ 
    7         $HAL_PROP_USB_BUS_NUMBER $HAL_PROP_USB_LINUX_DEVICE_NUMBER`" 
     6# NOTE: Minor race condidion. udev creates nodes with o+r. 
     7chmod o-r $HAL_PROP_SMART_CARD_READER_DEVICE_FILE 
     8chown @USER@:@GROUP@ $HAL_PROP_SMART_CARD_READER_DEVICE_FILE 
    89 
    9 if test -e $DEVICE 
     10if test -e "$HAL_PROP_SMART_CARD_READER_DEVICE_FILE" 
    1011then 
    11         exec @sbindir@/openct-control attach usb:$PRODUCT usb $DEVICE 
     12        exec @sbindir@/openct-control attach usb:$PRODUCT usb $HAL_PROP_SMART_CARD_READER_DEVICE_FILE 
    1213fi 
    13  
    14 DEVICE="`printf /proc/bus/usb/%03u/%03u \ 
    15         $HAL_PROP_USB_BUS_NUMBER $HAL_PROP_USB_LINUX_DEVICE_NUMBER`" 
    16 exec @sbindir@/openct-control attach usb:$PRODUCT usb $DEVICE 
Note: See TracChangeset for help on using the changeset viewer.