mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-07 15:20:36 +00:00
external_sd init.d script: change log messages
This commit is contained in:
parent
58fea060fd
commit
0858e63569
@ -6,7 +6,7 @@ echo "external_sd init script"
|
|||||||
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
|
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
|
||||||
|
|
||||||
if getprop ro.build.characteristics | grep -q nosdcard; then
|
if getprop ro.build.characteristics | grep -q nosdcard; then
|
||||||
echo ">> no SD Card found"
|
echo ">> no SD Card Slot"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
media_rw=$(grep "^/dev/block.*/mnt/media_rw" /proc/mounts \
|
media_rw=$(grep "^/dev/block.*/mnt/media_rw" /proc/mounts \
|
||||||
@ -16,7 +16,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d ${storage} ]]; then
|
if [[ -d ${storage} ]]; then
|
||||||
echo ">> SD Card found"
|
echo ">> SD Card inserted"
|
||||||
echo ">> storage: \"${storage}\""
|
echo ">> storage: \"${storage}\""
|
||||||
|
|
||||||
if [[ -e /external_sd ]]; then
|
if [[ -e /external_sd ]]; then
|
||||||
@ -38,5 +38,5 @@ if [[ -d ${storage} ]]; then
|
|||||||
mount -oro,remount /
|
mount -oro,remount /
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo ">> no SD Card found"
|
echo ">> no SD Card inserted"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user