summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-08-16ENV{TEST}=="1" compares and ENV{TEST}="1" sets the environmentKay Sievers
This can be uses to export stuff to the event environment or to carry a state from one rule to another, like enabling/disabling later rules conditionally. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-15move udevmonitor to /usr/sbinKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-15cleanup some debug output and move to info level + unify select() loopsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-13067 releaseGreg Kroah-Hartman
2005-08-13don't fail too bad, if /dev/null does not existKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-13fix udevstart event ordering, we want /dev/null very earlyKay Sievers
2005-08-13Merge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udevKay Sievers
2005-08-13fix more compiler warnings ...Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-12added the cdrom.h #defines directly into the cdrom_id.c fileGreg Kroah-Hartman
This solves the problem with building the file against old kernel header files. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-12fix make install, as we don't provide a default rule set anymoreKay Sievers
Several people complained about the "default" rules and the "default" setup. Here we start to remove things where we can't hava a "default". The best examples for rules are in the distro folders, just pick the one that matches your needs and start from there. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-12update SUSE rulesKay Sievers
don't use ID_TYPE, so cdroms will be in /dev/disk/ Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11066 releaseGreg KH
2005-08-11tweak the gentoo rules some more.Greg KH
- make the persistant rules smaller - add usbfs-like device node support Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11changed location of gentoo helper apps to be /sbin instead of in scripts dirGreg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11Change the gentoo rules to use cdrom_id instead of cdsymlink.shGreg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11fix klibc build issue in cdrom_id.cGreg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11added cdrom_id to the build checkGreg KH
2005-08-11changed cdrom_id exports to be easier to understand and consistant with ↵Greg KH
other _id programs. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11Created cdrom_id program to make it easier to determine cdrom typesGreg KH
Based on the framework from ata_id by Kay. Now we can drop the cdsymlinks.sh and .c files Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11update gentoo rule file.Greg KH
This fixes the issue of cdroms not showing up in the proper group, and them showing up in /dev/cd/ for the persistant names. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11move some logging to the info levelKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11add Usage: to udevmonitor and udevcontrolKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11allow logging of all output from executed toolsKay Sievers
If USE_DEBUG=true and udev_log="debug", all output of the forked programs to stdout and stderr is send to syslog. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11update SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-10fix udevinfo outputThierry Vignaud
2005-08-10split udev_util in several filesKay Sievers
It too big for the small tools to link against for only the log function. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-10update SUSE rulesKay Sievers
Tape naming is harder than expected, go back to block devices only. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09trivial text cleanupsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09remove example rules and put the dev.d stuff into the run_directory folderKay Sievers
The distro rules are the best example you can get and the use of dev.d/ is no longer recommended. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09update READMEKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09more distro rules updatesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09add firmware_helper to load firmwareKay Sievers
From: Bill Nottingham <notting@redhat.com> Changed reading of firmware blob to mmap and let firmware_helper follow the setting of the log level with UDEV_LOG.
2005-08-09update SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09add SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09update distro rules filesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08add flag for reading of precompiled rulesKay Sievers
Rules can be precompiled and stored on disk for initramfs, to avoid parsing the rules with every event again and again. Also the OWNER and GROUP names are already resolved to numerical values in the compiled rules. This flag is used for the upcoming move of the rules parsing into udevd: If the real root is mounted udevd is started and parses the rules only once. The event processes will inherit the already parsed rules from the daemon, so we want to ignore any precompiled rules and use the real rules files and watch the filesystem for changes to reload the rules automatically. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08allow clean shutdown of udevdKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08switch some strlcpy's to memcpyKay Sievers
strlcpy counts the sourec string lengt and is therefore not suitable to copy a defined length of characters from one string to another. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-05read sysfs attribute also from parent class deviceKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-04updated gentoo rule file to handle removable ide devices.Greg KH
Thanks to Kay for the quick fix. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-04add NETLINK define for the lazy distrosKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-02065 releaseGreg Kroah-Hartman
2005-08-02Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kayGreg Kroah-Hartman
2005-08-02Added persistent name rules for block devices to gentoo rule file.Greg Kroah-Hartman
Copied from Kay's rules from the SuSE package. Let the fun begin... Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-02update release notes for next versionKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01Added horrible (but fun) path_id script to extras.Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01Update gentoo rules file.Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01add udevmonitor, to debug netlink+udev events at the same timeKay Sievers
This rule: RUN+="socket:/org/kernel/udev/monitor" send the event to the running monitor. Running udevstart give a nice monitor output. Also the delay between the kernel uevent and the udev udev event can be investigated: pim:/home/kay/src/udev-kay # ./udevmonitor UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1 UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0 UEVENT[1122920113] add@/class/scsi_host/host12 UEVENT[1122920113] add@/class/usb_device/usbdev2.99 UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host12/target12:0:0/12:0:0:0 UDEV [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1 UEVENT[1122920113] add@/block/sda UEVENT[1122920113] add@/class/scsi_generic/sg0 UEVENT[1122920113] add@/class/scsi_device/12:0:0:0 UDEV [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0 UDEV [1122920113] add@/class/scsi_host/host12 UDEV [1122920113] add@/class/usb_device/usbdev2.99 UDEV [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host12/target12:0:0/12:0:0:0 UDEV [1122920113] add@/block/sda UDEV [1122920113] add@/class/scsi_generic/sg0 UDEV [1122920113] add@/class/scsi_device/12:0:0:0 UEVENT[1122920115] add@/block/sda/sda1 UDEV [1122920115] add@/block/sda/sda1 pim:/home/kay/src/udev-kay # ./udevmonitor --env UDEV [1122920185] add@/block/sda/sda1 ACTION=add DEVPATH=/block/sda/sda1 SUBSYSTEM=block SEQNUM=2159 MINOR=1 MAJOR=8 PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host13/target13:0:0/13:0:0:0 PHYSDEVBUS=scsi PHYSDEVDRIVER=sd UDEVD_EVENT=1 UDEV_LOG=3 ID_VENDOR=IBM ID_MODEL=Memory_Key ID_REVISION=3.04 ID_SERIAL=IBM_Memory_Key_0218B301030027E8 ID_TYPE=disk ID_BUS=usb ID_PATH=usb-0218B301030027E8:0:0:0 ID_FS_USAGE=filesystem ID_FS_TYPE=vfat ID_FS_VERSION=FAT16 ID_FS_UUID=42D8-9E02 ID_FS_LABEL_SAFE=s_p_c DEVNAME=/dev/sda1 Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01allow RUN to send the environment to a local socketKay Sievers
RUN="socket:<name>" will send the environment in the kernel uevent format to the named destination. Using the socket instead of the program to pass the hotplug events to the HAL daemon, cuts down the running time of udevstart from 0.8 to 0.4 seconds on my box. env -i ACTION=add DEVPATH=/block/hda/hda1 strace -s10000 ./udev block sendto(3, "add@/block/hda/hda1\0 ACTION=add\0DEVPATH=/block/hda/hda1\0UDEV_LOG=3\0 ID_TYPE=disk\0ID_MODEL=HTS726060M9AT00\0ID_SERIAL=MRH401M4G6UM9B\0 ID_REVISION=MH4OA6BA\0ID_BUS=ata\0ID_PATH=pci-0000:00:1f.1-ide-0:0\0 ID_FS_USAGE=other\0ID_FS_TYPE=swap\0ID_FS_VERSION=2\0 ID_FS_UUID=9352cfef-7687-47bc-a2a3-34cf136f72e1\0 ID_FS_LABEL=ThisIsSwap\0ID_FS_LABEL_SAFE=ThisIsSwap\0 DEVNAME=/dev/hda1\0" Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01fix GGC signed pointer warnings and switch volume_id to stdintKay Sievers
Solaris uses volume_id now and they fiddled around with configure scripts to map the linux kernel int types. Adding the types locally to volume_id breaks the klibc build, so just switch to these ugly types and forget it. :) Signed-off-by: Kay Sievers <kay.sievers@suse.de>