Disallow hotplug to run during sysinit, but allow elsewhere. Fixes #131.
This commit is contained in:
parent
1ff289e305
commit
4dba5b1ff1
@ -717,9 +717,9 @@ svc_start(bool deps)
|
||||
exit(EXIT_FAILURE);
|
||||
background = true;
|
||||
rc_service_mark(service, RC_SERVICE_HOTPLUGGED);
|
||||
if (rc_runlevel_starting())
|
||||
ewarnx("WARNING: %s will be started when the runlevel"
|
||||
" has finished.", applet);
|
||||
if (strcmp(runlevel, RC_LEVEL_SYSINIT) == 0)
|
||||
ewarnx("WARNING: %s will be started in the"
|
||||
" net runlevel.", applet);
|
||||
}
|
||||
|
||||
if (state & RC_SERVICE_STARTED) {
|
||||
|
Loading…
Reference in New Issue
Block a user