diff options
Diffstat (limited to 'toys')
-rw-r--r-- | toys/pending/mdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/mdev.c b/toys/pending/mdev.c index a270e520..9ee1f642 100644 --- a/toys/pending/mdev.c +++ b/toys/pending/mdev.c @@ -226,7 +226,7 @@ void mdev_main(void) if (toys.optflags) { dirtree_read("/sys/class", callback); - dirtree_read("/sys/block", callback); + if (!access("/sys/block", R_OK)) dirtree_read("/sys/block", callback); } else { // hotplug support make_device(NULL); } |