* Allow any login program to be specified.

svn path=/nixos/trunk/; revision=7575
This commit is contained in:
Eelco Dolstra 2007-01-08 21:34:30 +00:00
parent 873a8de2ad
commit 56da3e7887
2 changed files with 4 additions and 3 deletions

View File

@ -123,8 +123,9 @@ import ../upstart-jobs/gather.nix {
# The terminals on ttyX.
++ (map
(ttyNumber: makeJob (import ../upstart-jobs/mingetty.nix {
inherit (pkgs) mingetty pam_login;
inherit (pkgs) mingetty;
inherit ttyNumber;
loginProgram = "${pkgs.pam_login}/bin/login";
}))
(config.get ["services" "mingetty" "ttys"])
)

View File

@ -1,10 +1,10 @@
{mingetty, pam_login, ttyNumber}:
{mingetty, ttyNumber, loginProgram}:
{
name = "tty" + toString ttyNumber;
job = "
start on startup
stop on shutdown
respawn ${mingetty}/sbin/mingetty --loginprog=${pam_login}/bin/login --noclear tty${toString ttyNumber}
respawn ${mingetty}/sbin/mingetty --loginprog=${loginProgram} --noclear tty${toString ttyNumber}
";
}