chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udev: handle all events - not only class and block devices
[elogind.git]
/
udev_config.c
diff --git
a/udev_config.c
b/udev_config.c
index 0701d37e845d0466b8e639788a0e0f50dcb964f8..773ee67f9e1a48abff33430ec7cc8ea95a65063f 100644
(file)
--- a/
udev_config.c
+++ b/
udev_config.c
@@
-45,7
+45,6
@@
char udev_config_filename[PATH_SIZE];
char udev_rules_filename[PATH_SIZE];
int udev_log_priority;
int udev_run;
char udev_rules_filename[PATH_SIZE];
int udev_log_priority;
int udev_run;
-int udev_hotplug_d;
static int get_key(char **line, char **key, char **value)
{
static int get_key(char **line, char **key, char **value)
{
@@
-187,7
+186,6
@@
void udev_init_config(void)
strcpy(udev_rules_filename, UDEV_RULES_FILE);
udev_log_priority = LOG_ERR;
udev_run = 1;
strcpy(udev_rules_filename, UDEV_RULES_FILE);
udev_log_priority = LOG_ERR;
udev_run = 1;
- udev_hotplug_d = 1;
sysfs_get_mnt_path(sysfs_path, sizeof(sysfs_path));
/* disable RUN key execution */
sysfs_get_mnt_path(sysfs_path, sizeof(sysfs_path));
/* disable RUN key execution */
@@
-195,10
+193,6
@@
void udev_init_config(void)
if (env && !string_is_true(env))
udev_run = 0;
if (env && !string_is_true(env))
udev_run = 0;
- env = getenv("UDEV_NO_HOTPLUGD");
- if (env && string_is_true(env))
- udev_hotplug_d = 0;
-
env = getenv("UDEV_CONFIG_FILE");
if (env) {
strlcpy(udev_config_filename, env, sizeof(udev_config_filename));
env = getenv("UDEV_CONFIG_FILE");
if (env) {
strlcpy(udev_config_filename, env, sizeof(udev_config_filename));