What subsystem replaces /sbin/hotplug in CentOS 5? The older hotplug package is missing from CentOS 5 and /proc/sys/kernel/hotplug yields an empty string. Since hotpluging for standard devices still seems to work, I presume that something replaces the hotplug helper found on CentOS 4. Can someone point me in the right place? All of my Googleing points me back to the (obsolete?) /sbin/hotplug subsystem (Google is just not being helpful!). I'm guessing udev and/or HAL are involved somehow, but I am having a hard time figuring out what I need to do. Specificly, I have a special USB device (a PI Engineering Rail Driver Console device) that I have written a daemon for that I need to launch when the device is plugged in and when the device is unplugged, the daemon needs to be killed. For CentOS 4, I used a script fired up from the /sbin/hotplug via /etc/hotplug/usb.usermap -- what to I use for CentOS 5 (and eventually CentOS 6)? -- Robert Heller -- 978-544-6933 / heller at deepsoft.com Deepwoods Software -- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments
Ljubomir Ljubojevic
2011-Oct-21 19:13 UTC
[CentOS] What replaces /sbin/hotplug in CentOS 5?
Vreme: 10/21/2011 08:07 PM, Robert Heller pi?e:> What subsystem replaces /sbin/hotplug in CentOS 5? The older hotplug > package is missing from CentOS 5 and /proc/sys/kernel/hotplug yields an > empty string. Since hotpluging for standard devices still seems to > work, I presume that something replaces the hotplug helper found on > CentOS 4. Can someone point me in the right place? All of my > Googleing points me back to the (obsolete?) /sbin/hotplug subsystem > (Google is just not being helpful!). I'm guessing udev and/or HAL are > involved somehow, but I am having a hard time figuring out what I need > to do. > > Specificly, I have a special USB device (a PI Engineering Rail Driver > Console device) that I have written a daemon for that I need to launch > when the device is plugged in and when the device is unplugged, the > daemon needs to be killed. For CentOS 4, I used a script fired up from > the /sbin/hotplug via /etc/hotplug/usb.usermap -- what to I use for > CentOS 5 (and eventually CentOS 6)? > >I think you are supposed to use udev and /etc/udev/rules.d/ Geting up HP Printer on CentOS 5.x when USB 2.0 does not work properly: modprobe -r uhci_hcd; modprobe -r ehci_hcd; modprobe uhci_hcd; modprobe ehci_hcd usb_printerid /dev/usb/lp0 udevd restart service haldaemon restart If firmware loading during intallation does not work, use: make install-hotplug !!! (in /etc/udev/rules.d add 11-hplj10xx.rules file ???) -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant
Maybe Matching Threads
- FF 24 is borked: One must have tabs, like it or not!
- Creating an alternitive install CD for CentOS 5.2 (w/patched mkinitrd)
- CentOS 7, samba-4.4.4-14.el7_3 and openldap-2.4.40-13.el7 -- file permissions?
- Updated Spam Assassin for CentOS 5...
- USB Serial ports (ttyACMn) CentOS 6.7 (64-bit) vs. CentOS 6.7 (64-bit)