diff options
author | Rob Landley <rob@landley.net> | 2017-12-03 01:20:42 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-12-03 01:20:42 -0600 |
commit | ebceb16fd2992f76a1b4b42eec2b6d0d380935ac (patch) | |
tree | a3b2b5bff542a20b6b667caf86eb163e207057d1 /toys | |
parent | 3cc79396fd8b7e64f4cd2267261f3fcda8391827 (diff) | |
download | toybox-ebceb16fd2992f76a1b4b42eec2b6d0d380935ac.tar.gz |
Gaël PORTAY wants mdev to work when Linux has the block layer configured out.
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); } |