| 91 | | Linux distributions know three menchanism for hotplugging: |
| 92 | | hotplug and hotplug-ng (both old), udev (medium), hald (new). |
| 93 | | If your distribution uses udev, here is what to do. |
| | 91 | Over the time different mechanisms were developed for hotplugging - |
| | 92 | how the kernel can get the message "here is a new usb device" to |
| | 93 | the user space application that can make good use of it. OpenCT |
| | 94 | now suggests to use hald for this, as most distributions prefer this |
| | 95 | way and favor it. |
| 96 | | # cp etc/openct.udev /etc/udev/rules.d/95-openct.rules |
| 97 | | # cp etc/openct_usb /lib/udev/openct_usb |
| 98 | | # cp etc/openct_pcmcia /lib/udev/openct_pcmcia |
| 99 | | # cp etc/openct_serial /lib/udev/openct_serial |
| 100 | | }}} |
| 101 | | |
| 102 | | If your linux distribution is still using old hotplug or hotplug-ng, you can |
| 103 | | instead do this: |
| 104 | | |
| 105 | | {{{ |
| 106 | | # cp etc/openct.usermap /etc/hotplug/usb/openct.usermap |
| 107 | | # cp etc/openct_usb /etc/hotplug/usb/openct |
| 108 | | }}} |
| 109 | | |
| 110 | | Note: we don't know how to write a map file for pcmcia card |
| 111 | | readers, but the only reader we support needs a current kernel |
| 112 | | and that most likely means you need to use udev anyway. Still, |
| 113 | | if anyone figures out, it should be quite similar to the usb |
| 114 | | hotplug setup. If it works for you, please report back, so we |
| 115 | | can include it in OpenCT. |
| 116 | | |
| 117 | | If your linux distribution uses the new hald setup, you can do this instead: |
| 118 | | {{{ |
| 119 | | # mkdir -p /usr/share/hal/fdi/information/10freedesktop/ |
| 120 | | # cp etc/openct.fdi /usr/share/hal/fdi/information/10freedesktop/10-usb-openct.fdi |
| 121 | | # cp etc/openct.hald /usr/bin/hald-addon-openct |
| | 98 | mkdir -p /usr/share/hal/fdi/information/10freedesktop/ |
| | 99 | cp etc/openct.fdi /usr/share/hal/fdi/information/10freedesktop/10-usb-openct.fdi |
| | 100 | cp openct-policy.fdi /usr/share/hal/fdi/policy/10osvendor/10-usb-openct.fdi |
| | 101 | cp etc/openct.hald /usr/lib/hal/hald-addon-openct # distro dependent |
| | 102 | chmod 0755 /usr/lib/hal/hald-addon-openct # needs to be executable |