mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 21:13:01 +07:00
plugins: only run pam_console_apply if available
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -41,16 +41,13 @@ static void setup(void *arg)
|
||||
return;
|
||||
}
|
||||
|
||||
if (fexist("/var/run/console/console.lock"))
|
||||
if (fexist("/var/run/console/console.lock") && which("pam_console_apply"))
|
||||
run("pam_console_apply", "pam-console");
|
||||
}
|
||||
|
||||
static plugin_t plugin = {
|
||||
.name = __FILE__,
|
||||
.hook[HOOK_NETWORK_UP] = {
|
||||
.cb = setup
|
||||
},
|
||||
.depends = { "bootmisc", }
|
||||
.hook[HOOK_SVC_PLUGIN] = { .cb = setup },
|
||||
};
|
||||
|
||||
PLUGIN_INIT(plugin_init)
|
||||
|
||||
Reference in New Issue
Block a user