chiark / gitweb /
Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
authorGreg KH <greg@press.(none)>
Tue, 21 Jun 2005 23:36:29 +0000 (16:36 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 21 Jun 2005 23:36:29 +0000 (16:36 -0700)
etc/udev/gentoo/udev.rules
udevinfo.c

index db8c5d9..65113ae 100644 (file)
@@ -51,8 +51,8 @@ KERNEL="timer",                       NAME="snd/%k"
 KERNEL="seq",                  NAME="snd/%k"
 
 # capi devices
-KERNEL="capi",         NAME="capi20", SYMLINK="isdn/capi20"
-KERNEL="capi*",                NAME="capi/%n"
+KERNEL="capi",         NAME="capi20", SYMLINK="isdn/capi20", GROUP="dialout"
+KERNEL="capi*",                NAME="capi/%n", GROUP="dialout"
 
 # cpu devices
 KERNEL="cpu[0-9]*",    NAME="cpu/%n/cpuid"
index 31e719f..69e5335 100644 (file)
@@ -152,19 +152,16 @@ static int print_device_chain(const char *path)
 
        /* look the device chain upwards */
        while (sysfs_dev != NULL) {
-               attr_list = sysfs_get_device_attributes(sysfs_dev);
-               if (attr_list == NULL) {
-                       fprintf(stderr, "couldn't open device directory\n");
-                       retval = -1;
-                       goto exit;
-               }
-
                printf("  looking at the device chain at '%s':\n", sysfs_dev->path);
                printf("    BUS==\"%s\"\n", sysfs_dev->bus);
                printf("    ID==\"%s\"\n", sysfs_dev->bus_id);
                printf("    DRIVER==\"%s\"\n", sysfs_dev->driver_name);
 
-               print_all_attributes(attr_list);
+               attr_list = sysfs_get_device_attributes(sysfs_dev);
+               if (attr_list != NULL)
+                       print_all_attributes(attr_list);
+               else
+                       printf("\n");
 
                sysfs_dev = sysfs_get_device_parent(sysfs_dev);
                if (sysfs_dev == NULL)