diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-01-29 23:06:57 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-01-29 23:06:57 +0000 |
commit | ebb8f55a10eadc63ab18d31316fe8c971b15915f (patch) | |
tree | 36de6eb8843ede93eaca0cf17e1034b409c2c6cb /modules/services/ttys | |
parent | 7edc419f657b18392d41c362af16c3293630fc5a (diff) | |
download | nixlib-ebb8f55a10eadc63ab18d31316fe8c971b15915f.tar nixlib-ebb8f55a10eadc63ab18d31316fe8c971b15915f.tar.gz nixlib-ebb8f55a10eadc63ab18d31316fe8c971b15915f.tar.bz2 nixlib-ebb8f55a10eadc63ab18d31316fe8c971b15915f.tar.lz nixlib-ebb8f55a10eadc63ab18d31316fe8c971b15915f.tar.xz nixlib-ebb8f55a10eadc63ab18d31316fe8c971b15915f.tar.zst nixlib-ebb8f55a10eadc63ab18d31316fe8c971b15915f.zip |
Mingetty: Default to `ttyS0' for ARM devices.
svn path=/nixos/trunk/; revision=25717
Diffstat (limited to 'modules/services/ttys')
-rw-r--r-- | modules/services/ttys/mingetty.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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. ''; |