From ebb8f55a10eadc63ab18d31316fe8c971b15915f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 29 Jan 2011 23:06:57 +0000 Subject: [PATCH] Mingetty: Default to `ttyS0' for ARM devices. svn path=/nixos/trunk/; revision=25717 --- modules/services/ttys/mingetty.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/ttys/mingetty.nix b/modules/services/ttys/mingetty.nix index d8abc129e2d8..e924d38dd606 100644 --- a/modules/services/ttys/mingetty.nix +++ b/modules/services/ttys/mingetty.nix @@ -11,7 +11,10 @@ with pkgs.lib; services.mingetty = { ttys = mkOption { - default = [ "tty1" "tty2" "tty3" "tty4" "tty5" "tty6" ]; + default = + if pkgs.stdenv.isArm + then [ "ttyS0" ] # presumably an embedded platform such as a plug + else [ "tty1" "tty2" "tty3" "tty4" "tty5" "tty6" ]; description = '' The list of tty devices on which to start a login prompt. '';