diff options
-rw-r--r-- | udev_utils.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/udev_utils.c b/udev_utils.c index 5cdfb1421d..74b55ed406 100644 --- a/udev_utils.c +++ b/udev_utils.c @@ -89,9 +89,11 @@ int udev_init_device(struct udevice *udev, const char* devpath, const char *subs } } - udev->mode = 0660; - strcpy(udev->owner, "root"); - strcpy(udev->group, "root"); + if (udev->type == DEV_BLOCK || udev->type == DEV_CLASS) { + udev->mode = 0660; + strcpy(udev->owner, "root"); + strcpy(udev->group, "root"); + } return 0; } |