blob: 1ce4e4ce5fa43d0185f5e0001d81962480ba85ea [file] [log] [blame]
# Copyright (c) 2013 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.
description "Chrome OS factory startup stub"
author ""
# The start/stop timing should be the same (or earlier than) to ui.conf
start on started boot-services
stop on starting pre-shutdown
pre-start script
. /usr/share/cros/
if ! is_factory_mode; then
# Preventing tty2 (developer shell console) to go blank after some idle time
for i in $(seq 2 4); do
setterm -cursor on -blank 0 -powersave off -powerdown 0 >/dev/tty${i} || true
end script
exec "/usr/local/factory/bin/goofy_control" start >/dev/tty4
end script
pre-stop script
# Try to stop UI before we kill X
stop ui
pkill python
pkill X
end script