aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-12 14:00:12 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-12 14:00:12 +0000
commitf1df35c40bfba65f5923db11719326b7e9bbc7ad (patch)
tree6d923ef5fc5e8dd8ffed6f650160cc7a3d3a0bed /util-linux/mdev.c
parent67b5eeb93324f7484836be705698e72008498fe5 (diff)
downloadbusybox-w32-f1df35c40bfba65f5923db11719326b7e9bbc7ad.tar.gz
busybox-w32-f1df35c40bfba65f5923db11719326b7e9bbc7ad.tar.bz2
busybox-w32-f1df35c40bfba65f5923db11719326b7e9bbc7ad.zip
mdev: do not complain if /sys/block doesn't exist
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 78bb48ac0..b7b311aaa 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -425,10 +425,11 @@ int mdev_main(int argc UNUSED_PARAM, char **argv)
425 if (access("/sys/class/block", F_OK) != 0) { 425 if (access("/sys/class/block", F_OK) != 0) {
426 /* Scan obsolete /sys/block only if /sys/class/block 426 /* Scan obsolete /sys/block only if /sys/class/block
427 * doesn't exist. Otherwise we'll have dupes. 427 * doesn't exist. Otherwise we'll have dupes.
428 * Also, do not complain if it doesn't exist.
429 * Some people configure kernel to have no blockdevs.
428 */ 430 */
429 recursive_action("/sys/block", 431 recursive_action("/sys/block",
430 ACTION_RECURSE | ACTION_FOLLOWLINKS, 432 ACTION_RECURSE | ACTION_FOLLOWLINKS | ACTION_QUIET,
431 // not needed now? | ACTION_QUIET
432 fileAction, dirAction, temp, 0); 433 fileAction, dirAction, temp, 0);
433 } 434 }
434 recursive_action("/sys/class", 435 recursive_action("/sys/class",