| # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| start on runlevel [2] |
| stop on runlevel [!2] |
| |
| respawn |
| exec /sbin/agetty 38400 tty2 linux |
| |
| post-start script |
| # Disable screen blanking and powering down for dev & factory. |
| # TODO(tbroch) If X is running and DPMS is enabled it still blanks VT2. |
| # Investigate possibility of tying these different code paths together. |
| printf "\033[9;0]" > /dev/console |
| printf "\033[14;0]" > /dev/console |
| end script |