summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyotaek Shim <hyotaek.shim@samsung.com>2021-04-09 13:14:46 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2021-04-19 21:28:47 +0900
commit2d82b4e1da01244fc86aabdedd80f92cf6c36190 (patch)
tree20645b0d5ddf7695ca40ab5ef9b9bc99c2400859
parentcef37be32588a4910e5be96a8f4370e68bfc81f9 (diff)
downloadsystem-plugin-2d82b4e1da01244fc86aabdedd80f92cf6c36190.tar.gz
system-plugin-2d82b4e1da01244fc86aabdedd80f92cf6c36190.tar.bz2
system-plugin-2d82b4e1da01244fc86aabdedd80f92cf6c36190.zip
Clean up init_wrapper script
Change-Id: I760a01622d5432f0bc7622fed4d35dded75f165e Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rw-r--r--scripts/init.wrapper4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/init.wrapper b/scripts/init.wrapper
index cfdcd74..691cae9 100644
--- a/scripts/init.wrapper
+++ b/scripts/init.wrapper
@@ -1,7 +1,6 @@
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
SYSTEM_MNT=/opt
-SYS_BLK_DIR=/sys/class/block
MODULES_MNT=/usr/lib/modules
mkdir -p /dev /sys /proc
@@ -51,8 +50,8 @@ if [ x$MODULES = "x" ]
then
echo "Warning : There is no modules partition."
else
- /sbin/resize2fs -f $MODULES
/sbin/fsck -y $MODULES
+ /sbin/resize2fs -f $MODULES
/bin/mount $MODULES $MODULES_MNT
fi
@@ -61,7 +60,6 @@ then
echo "Warning : There is no system-data partition."
else
/usr/bin/mount | grep "$DATAFS " > /dev/null
-
if [ $? = "0" ]
then
/usr/bin/umount -l "$DATAFS"