$ENV{SYSFS_PATH} = $sysfs;
$ENV{UDEV_CONFIG_FILE} = $main_conf;
$ENV{UDEV_NO_DEVD} = "yes";
+$ENV{UDEV_NO_HOTPLUGD} = "yes";
sub udev {
}
hotplug:
- if (manage_hotplug_event())
+ if (udev_hotplug_d && manage_hotplug_event())
udev_multiplex_directory(&udev, HOTPLUGD_DIR, HOTPLUG_SUFFIX);
exit:
char default_group_str[GROUP_SIZE];
int udev_log;
int udev_dev_d;
+int udev_hotplug_d;
static int string_is_true(char *str)
{
char *env;
- /* fill up the defaults.
+ /* fill up the defaults.
* If any config values are specified, they will
* override these values. */
strfieldcpy(udev_root, UDEV_ROOT);
env = getenv("UDEV_NO_DEVD");
if (env && string_is_true(env))
udev_dev_d = 0;
+
+ udev_hotplug_d = 1;
+ env = getenv("UDEV_NO_HOTPLUGD");
+ if (env && string_is_true(env))
+ udev_hotplug_d = 0;
}
int parse_get_pair(char **orig_string, char **left, char **right)