mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
d98f482739
(and you get Upstart messages about the ttyN job being restarted). svn path=/nixos/trunk/; revision=13931
11 lines
234 B
Nix
11 lines
234 B
Nix
{mingetty, ttyNumber, loginProgram}:
|
|
|
|
{
|
|
name = "tty" + toString ttyNumber;
|
|
job = "
|
|
start on udev
|
|
stop on shutdown
|
|
respawn ${mingetty}/sbin/mingetty --loginprog=${loginProgram} --noclear tty${toString ttyNumber}
|
|
";
|
|
}
|