OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 description "Chrome OS factory startup stub" |
| 6 author "chromium-os-dev@chromium.org" |
| 7 |
| 8 start on stopped udev-addon |
| 9 stop on starting halt or starting reboot |
| 10 |
| 11 script |
| 12 modprobe i2c-dev |
| 13 cd /usr/local/autotest |
| 14 eval $(./site_tests/suite_Factory/startx.sh) |
| 15 date >>/var/log/factory.log |
| 16 if [ ! -e factory_started ]; then |
| 17 touch factory_started |
| 18 cp -f site_tests/suite_Factory/control . |
| 19 OPT="" |
| 20 else |
| 21 OPT="-c" |
| 22 fi |
| 23 ./bin/autotest -t factory $OPT control >>/var/log/factory.log 2>&1 |
| 24 end script |
| 25 |
| 26 pre-stop script |
| 27 pkill python |
| 28 pkill X |
| 29 end script |
OLD | NEW |