mistral: Update factory-init.conf

Update to the version Mistral uses.

BUG=b:128812577
TEST=build image and verify.

Change-Id: I7df68821e969ddaed84d24067cb9b115b4d3beef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/1800625
Reviewed-by: Zheng Pan <zhengpan@chromium.org>
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Zheng Pan <zhengpan@chromium.org>
Tested-by: Chinyue Chen <chinyue@chromium.org>
Commit-Queue: Chinyue Chen <chinyue@chromium.org>
diff --git a/init/upstart/test-init/factory-init.conf b/init/upstart/test-init/factory-init.conf
index 307b1f1..27a355b 100644
--- a/init/upstart/test-init/factory-init.conf
+++ b/init/upstart/test-init/factory-init.conf
@@ -1,16 +1,13 @@
 description    "Initialize factory test environment"
 author         "chromium-os-dev@chromium.org"
 
-# For factory test to perform early initialization Ex: changing UI start
-# parameters, disable or add upstart jobs...
-# Hint: ui.conf starts on "started boot-services", so this factory-init should
-# always run before UI starts.
+# For factory test environment initialization
 
-# This service should be started explicitly by an earlier service loading
-# factory_utils.sh and checking is_factory_mode, for example cros-payloads.conf.
-# Other factory related service can do "start on started factory-init" to
-# prevent checking is_factory_mode.
+start on started system-services
 
-task
-
-exec /usr/local/factory/init/startup init
+script
+  mkdir -p /var/log/factory
+  if [ -e '/usr/local/factory/enable' ]; then
+    exec /usr/local/factory/init/main.d/offline-test.sh
+  fi
+end script