M7350/system/extras/tests/fstest/mounts-test.sh

35 lines
518 B
Bash
Raw Normal View History

2024-09-09 08:57:42 +00:00
#!/bin/sh
rtrn=0
adb shell mount | grep -q /sdcard
if [ 0 -ne $? ]
then
echo FAILURE: /sdcard is not mounted
exit 1
fi
for i in nosuid noexec
do
adb shell mount | grep /sdcard | grep -q $i
if [ 0 -ne $? ]
then
echo FAILURE: /sdcard is not mounted $i
rtrn=$(expr $rtrn + 1)
fi
done
for i in mem kmem
do
adb shell ls /dev/*mem | grep -q $i
if [ 0 -ne $? ]
then
echo FAILURE: $i is present on system
rtrn=$(expr $rtrn + 1)
fi
done
exit $rtrn