diff options
author | greg@kroah.com <greg@kroah.com> | 2004-02-17 20:59:26 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:32:28 -0700 |
commit | 961e47847cdb33b1fabe4084cef7cd37f73a19d1 (patch) | |
tree | a78f59f91001d2db450c0ffcb31be9e012eccf31 /udev_config.c | |
parent | 8fff7b42b45ef13946f7bc25308016d3dfdc63df (diff) |
[PATCH] add support for UDEV_NO_SLEEP env variable so Gentoo people will be happy.
Actually, I'm happy to, startup time is much smaller...
Diffstat (limited to 'udev_config.c')
-rw-r--r-- | udev_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/udev_config.c b/udev_config.c index 34ef82b881..6714c1b73d 100644 --- a/udev_config.c +++ b/udev_config.c @@ -49,6 +49,7 @@ char default_mode_str[MODE_SIZE]; char default_owner_str[OWNER_SIZE]; char default_group_str[GROUP_SIZE]; int udev_log; +int udev_sleep; static int string_is_true(char *str) @@ -71,6 +72,10 @@ static void init_variables(void) strfieldcpy(udev_rules_filename, UDEV_RULES_FILE); strfieldcpy(udev_permissions_filename, UDEV_PERMISSION_FILE); udev_log = string_is_true(UDEV_LOG_DEFAULT); + + udev_sleep = 1; + if (getenv("UDEV_NO_SLEEP") != NULL) + udev_sleep = 0; } #define set_var(_name, _var) \ |