summaryrefslogtreecommitdiff
path: root/udevstart.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-11 17:19:05 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-11 17:19:05 +0200
commit7fd0de4984deac2e51f9b85c156f200beadbc7ef (patch)
tree9cfaf42de454c0888c409dc083f5ca49f05cb9e9 /udevstart.c
parenta1ea706a1e3dfa1bb86ebcfcd0b819311526b2e2 (diff)
update SUSE rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udevstart.c')
-rw-r--r--udevstart.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/udevstart.c b/udevstart.c
index 4288db9d38..23a13e08ff 100644
--- a/udevstart.c
+++ b/udevstart.c
@@ -315,10 +315,7 @@ static void udev_scan_class(void)
snprintf(dirname2, sizeof(dirname2), "%s/%s", dirname, dent2->d_name);
dirname2[sizeof(dirname2)-1] = '\0';
- /* pass the net class as it is */
- if (strcmp(dent->d_name, "net") == 0)
- device_list_insert(dirname2, "net", &device_list);
- else if (has_devt(dirname2))
+ if (has_devt(dirname2) || strcmp(dent->d_name, "net") == 0)
device_list_insert(dirname2, dent->d_name, &device_list);
}
closedir(dir2);