| Revision 1149,
886 bytes
checked in by aj, 3 years ago
(diff) |
|
comment out owner, group and permission changes for now.
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | PRODUCT="`printf %x/%x/%x $HAL_PROP_USB_VENDOR_ID $HAL_PROP_USB_PRODUCT_ID \ |
|---|
| 4 | $HAL_PROP_USB_DEVICE_REVISION_BCD`" |
|---|
| 5 | |
|---|
| 6 | # this script is run by root, so you can use it to modify |
|---|
| 7 | # owner, group and permissions of the device file. |
|---|
| 8 | # |
|---|
| 9 | # NOTE: Minor race condidion. udev creates nodes with o+r. |
|---|
| 10 | # |
|---|
| 11 | # commented out for now, every administrator/distribution |
|---|
| 12 | # should apply the security policy it prefers. |
|---|
| 13 | # |
|---|
| 14 | # usualy openct is run as root.root, thus no changes are |
|---|
| 15 | # necessary (well, a chmod o-r would be good). but if |
|---|
| 16 | # you choose to run openct as a different user or group. |
|---|
| 17 | # you need to setup permissions here. |
|---|
| 18 | # |
|---|
| 19 | #chmod o-r $HAL_PROP_SMART_CARD_READER_DEVICE_FILE |
|---|
| 20 | #chown @USER@:@GROUP@ $HAL_PROP_SMART_CARD_READER_DEVICE_FILE |
|---|
| 21 | |
|---|
| 22 | if test -e "$HAL_PROP_SMART_CARD_READER_DEVICE_FILE" |
|---|
| 23 | then |
|---|
| 24 | exec @sbindir@/openct-control attach usb:$PRODUCT usb $HAL_PROP_SMART_CARD_READER_DEVICE_FILE |
|---|
| 25 | fi |
|---|
Note: See
TracBrowser
for help on using the repository browser.