summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinwang.an <jinwang.an@samsung.com>2019-04-19 10:01:49 (GMT)
committerjinwang.an <jinwang.an@samsung.com>2019-04-19 10:02:16 (GMT)
commit9f8523a1ff63933cda223235fc6fbb43afb2efe1 (patch)
tree7a32c3054b0dfcc3cc95f97e4b23a4844675cc26
parentad6e4f3d07f3221ad844b2f9ad4222a3e247a732 (diff)
downloadfactory-reset-9f8523a1ff63933cda223235fc6fbb43afb2efe1.zip
factory-reset-9f8523a1ff63933cda223235fc6fbb43afb2efe1.tar.gz
factory-reset-9f8523a1ff63933cda223235fc6fbb43afb2efe1.tar.bz2
Change-Id: I057dc4749fdf1e064eb4ea70713dec1be1c776b9 Signed-off-by: jinwang.an <jinwang.an@samsung.com>
-rwxr-xr-xscript/build-backup-data.sh2
-rw-r--r--script/dump-frlog.sh1
-rwxr-xr-xscript/factoryreset-verify-result.sh2
-rw-r--r--script/factoryreset-verify.sh1
-rwxr-xr-xscript/run-factory-reset.sh1
5 files changed, 5 insertions, 2 deletions
diff --git a/script/build-backup-data.sh b/script/build-backup-data.sh
index da67765..2d48f90 100755
--- a/script/build-backup-data.sh
+++ b/script/build-backup-data.sh
@@ -19,10 +19,10 @@
#
+PATH="/usr/bin:/bin:/usr/sbin:/sbin"
## build backup data for factory reset
-
[ $INSTALL_ROOT ] || INSTALL_ROOT="/"
rdir=$INSTALL_ROOT/usr/system/RestoreDir
optdir=$INSTALL_ROOT/opt
diff --git a/script/dump-frlog.sh b/script/dump-frlog.sh
index b3e495d..6fd5a8b 100644
--- a/script/dump-frlog.sh
+++ b/script/dump-frlog.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+PATH="/usr/bin:/bin:/usr/sbin:/sbin"
#--------------------------------------
# Factory-reset
diff --git a/script/factoryreset-verify-result.sh b/script/factoryreset-verify-result.sh
index d482158..551bfba 100755
--- a/script/factoryreset-verify-result.sh
+++ b/script/factoryreset-verify-result.sh
@@ -19,7 +19,7 @@
#
-
+PATH="/usr/bin:/bin:/usr/sbin:/sbin"
logfile="/opt/var/log/.verify.log"
frlog="/opt/.factoryreset.log"
diff --git a/script/factoryreset-verify.sh b/script/factoryreset-verify.sh
index 3302a21..5cdcc00 100644
--- a/script/factoryreset-verify.sh
+++ b/script/factoryreset-verify.sh
@@ -17,6 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+PATH="/usr/bin:/bin:/usr/sbin:/sbin"
logfile="/tmp/.verify_fail.log"
logchecksum="/tmp/verify_checksum.log"
diff --git a/script/run-factory-reset.sh b/script/run-factory-reset.sh
index 535f499..f08c46f 100755
--- a/script/run-factory-reset.sh
+++ b/script/run-factory-reset.sh
@@ -17,6 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+PATH="/usr/bin:/bin:/usr/sbin:/sbin"
logfile="/opt/.factoryreset.log"
logfile1="/opt/.factoryreset.log.1"