Index: mod_for_factory_scripts/200patchInitScript |
diff --git a/mod_for_factory_scripts/200patchInitScript b/mod_for_factory_scripts/200patchInitScript |
index 7caa95acb4d3d4723341722b5c1064cd8ad63d7a..63728d400801769ea8b0fef2963b52c95d3fe1fa 100755 |
--- a/mod_for_factory_scripts/200patchInitScript |
+++ b/mod_for_factory_scripts/200patchInitScript |
@@ -6,8 +6,8 @@ |
echo "Applying patch to init scripts." |
-touch ${ROOT_FS_DIR}/root/.factory_test |
-patch -d ${ROOT_FS_DIR} -Np1 <<EOF |
+touch "${ROOT_FS_DIR}/root/.factory_test" |
+patch -d "${ROOT_FS_DIR}" -Np1 <<EOF |
--- old/etc/init/ui.conf 2010-04-28 21:28:38.886069000 -0700 |
+++ new/etc/init/ui.conf 2010-04-28 21:29:42.676163000 -0700 |
@@ -5,7 +5,7 @@ |
@@ -21,7 +21,7 @@ patch -d ${ROOT_FS_DIR} -Np1 <<EOF |
respawn |
EOF |
-patch -d ${ROOT_FS_DIR} -Np1 <<EOF |
+patch -d "${ROOT_FS_DIR}" -Np1 <<EOF |
diff -Naur old/etc/init/dump-boot-stats.conf new/etc/init/dump-boot-stats.conf |
--- old/etc/init/boot-complete.conf 2010-07-21 11:22:30.000000000 +0800 |
+++ new/etc/init/boot-complete.conf 2010-07-21 22:13:36.000000000 +0800 |
@@ -35,7 +35,7 @@ diff -Naur old/etc/init/dump-boot-stats.conf new/etc/init/dump-boot-stats.conf |
task |
EOF |
-cat > ${ROOT_FS_DIR}/etc/init/factory.conf <<EOF |
+cat >"${ROOT_FS_DIR}/etc/init/factory.conf" <<EOF |
# 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. |
@@ -60,7 +60,7 @@ fi |
end script |
EOF |
-cat > ${ROOT_FS_DIR}/etc/init/factorylog.conf <<EOF |
+cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF |
# 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. |
@@ -74,7 +74,7 @@ tail -n 48 -F /var/log/factory.log > /dev/tty3 |
end script |
EOF |
-patch -d ${ROOT_FS_DIR} -Np1 <<EOF |
+patch -d "${ROOT_FS_DIR}" -Np1 <<EOF |
diff -Nau old/etc/init/chrontel.conf new/etc/init/ |
--- old/etc/init/chrontel.conf 2010-08-05 16:32:55.000000000 -0700 |
+++ new/etc/init/chrontel.conf 2010-08-05 16:32:45.000000000 -0700 |