mounts-test.sh revision b000782e81f9757ec9f6eb1711135cdaf622f6b0
1#!/bin/sh
2
3rtrn=0
4
5adb shell mount | grep -q /sdcard
6if [ 0 -ne $? ]
7then
8    echo FAILURE: /sdcard is not mounted
9    exit 1
10fi
11
12for i in nosuid noexec
13do
14    adb shell mount | grep /sdcard | grep -q $i
15    if [ 0 -ne $? ]
16    then
17        echo FAILURE: /sdcard is not mounted $i
18        rtrn=$(expr $rtrn + 1)
19    fi
20done
21
22exit $rtrn
23
24