Index: factory.conf |
diff --git a/factory.conf b/factory.conf |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9d9826a7505e207baea6369cc4daab6d1e06ae77 |
--- /dev/null |
+++ b/factory.conf |
@@ -0,0 +1,29 @@ |
+# Copyright (c) 2011 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 "chromium-os-dev@chromium.org" |
+ |
+start on stopped udev-addon |
+stop on starting halt or starting reboot |
+ |
+script |
+ modprobe i2c-dev |
+ cd /usr/local/autotest |
+ eval $(./site_tests/suite_Factory/startx.sh) |
+ date >>/var/log/factory.log |
+ if [ ! -e factory_started ]; then |
+ touch factory_started |
+ cp -f site_tests/suite_Factory/control . |
+ OPT="" |
+ else |
+ OPT="-c" |
+ fi |
+ ./bin/autotest -t factory $OPT control >>/var/log/factory.log 2>&1 |
+end script |
+ |
+pre-stop script |
+ pkill python |
+ pkill X |
+end script |