| # 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. |
| |
| # description "Factory installer service" |
| # author "chromium-os-dev@googlegroups.com" |
| # |
| # when dump-boot-stats has run, start up factory installer. |
| |
| start on started factory_install |
| |
| script |
| # If using a serial console, log to that for debugging (e.g., in KVM); |
| # otherwise log to tty1. |
| if grep -q console=ttyS0 /proc/cmdline; then |
| log=/dev/ttyS0 |
| else |
| log=/dev/tty1 |
| fi |
| exec tail -F /var/log/softwareupdate.log > $log |
| end script |