Skip to content
Snippets Groups Projects
Commit 45e535b3 authored by Keerthi Gowda Balehalli Satyanarayana's avatar Keerthi Gowda Balehalli Satyanarayana
Browse files

meta-qti-bsp: Check for full filepath to verify mount

Common prefix or suffix of filename skips necessary
mounts. Check for the compelte filepath.

Change-Id: I1a7ba4de2fc31d114482633c5065c2ad7e02f81e
parent 8741b48b
No related branches found
Tags LE.UM.3.2.3-39500-SA2150p
No related merge requests found
......@@ -34,7 +34,9 @@ if [ -d "$mountpoint" ]; then
for file in *
do
#Skip if already mount-binded
if grep -qs $file /proc/mounts; then
# remove trailing '/' if present
mountpath=$(echo $mountpoint | sed 's:/*$::')
if grep -qs "$mountpath/$file" /proc/mounts; then
continue
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment