rc_allow_plug -> rc_service_plugable

This commit is contained in:
Roy Marples
2007-10-02 09:57:23 +00:00
parent 4e9e8d075c
commit 69ebf0c738
8 changed files with 24 additions and 24 deletions

View File

@ -1065,7 +1065,7 @@ int runscript (int argc, char **argv)
/* We don't free our list as that would be null in environ */
}
softlevel = rc_get_runlevel ();
softlevel = rc_runlevel_get ();
}
setenv ("RC_ELOG", service, 1);
@ -1134,7 +1134,7 @@ int runscript (int argc, char **argv)
}
if (rc_env_bool ("IN_HOTPLUG")) {
if (! rc_env_bool ("RC_HOTPLUG") || ! rc_allow_plug (applet))
if (! rc_env_bool ("RC_HOTPLUG") || ! rc_service_plugable (applet))
eerrorx ("%s: not allowed to be hotplugged", applet);
}