unable to execute hotplug script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I am trying to enable hotplugging for usb on my h/w based on 2.6.16 kernel.
The hotplug kernel module is enabled and I have registered a user
script "test.sh"
with the proc file system.


/root # echo  "/bin/test.sh"  > /proc/sys/kernel/hotplug

-------------------
/root #  cat /proc/sys/kernel/hotplug
/bin/test.sh
-------------------

/root # cat /bin/test.sh

#!/bin/sh
echo "my hotplug script"
-------------------

I observed that even on plug-in and plug-out my usb device, the
hotplug script "test.sh"
is not getting executed though I see that kobject_uevent() of
kobject_uevent.c is getting called
with proper "uevent_helper" and "subsystem" values. Those are
"/bin/test.sh" and "usb" respectively in this case. Is there any thing
I am missing here ? (udev is not supported
in my device.)


Thanks in advance.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux