On Sep 18, Kay Sievers <[EMAIL PROTECTED]> wrote:

> The kernel event buffer is smaller than the udevsend buffer. I expect
> udevsend is not called from the kernel. What's in /proc/sys/kernel/hotplug?
> Or maybe some symlink does still exist in the hotplug.d/ dir to call
> udevsend? Or something like this...

Actually udevsend *was* not called by the kernel, but by the hal
post-installation script... Is this really bad?

This is a feature which some maintainers have been asking for.

do_udev() {
  # Synthesize events on block devices, so we know the permissions are setup
  # the right way 
  SYSFS="/sys"
  for i in /sys/block/* ; do
    # for each device
    ACTION=add DEVPATH=${i#${SYSFS}} ${UDEVSEND} block &

    for j in $i/* ; do
      if [ -f $j/dev ]; then
        ACTION=add DEVPATH=${j#${SYSFS}} ${UDEVSEND} block &
      fi
    done
  done
}

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature

Reply via email to