Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Commit Details
Date: | 2010-08-29 05:41:20 (13 years 6 months ago) |
---|---|
Author: | Xiangfu Liu |
Commit: | b6f32d536f8969b4e242fa80552ecb9ac2b679df |
Message: | test-memory-card.sh: cleanup the output message, modify by Adam Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc> |
Files: |
binaries/sie_rootfs_files/root/binaries/test-memory-card.sh (4 diffs) |
Change Details
binaries/sie_rootfs_files/root/binaries/test-memory-card.sh | ||
---|---|---|
1 | 1 | #!/bin/sh |
2 | # Program: | |
3 | # Program trys firstly to detect if uSD card inserted and then | |
4 | # mount data | |
5 | # History: | |
6 | # Author: | |
7 | # 2010-08-19 XiangFu Liu, xiangfu@sharism.cc | |
2 | 8 | |
3 | 9 | if [ -b "/dev/mmcblk0" ] ; then |
4 | 10 | echo "there is a memory card present" |
... | ... | |
7 | 13 | exit 1 |
8 | 14 | fi |
9 | 15 | |
16 | #make multi-layer directory | |
10 | 17 | mkdir -p /tmp/card |
11 | 18 | |
12 | 19 | echo "try to mount mmc card" |
... | ... | |
14 | 21 | if [ $? == 0 ] ; then |
15 | 22 | echo "mount ok" |
16 | 23 | else |
17 | echo "ERROR - can not mount memory card" | |
24 | echo "ERROR - can not do a real mount on memory card" | |
18 | 25 | exit 1 |
19 | 26 | fi |
20 | 27 | |
... | ... | |
23 | 30 | if [ $? == 0 ] ; then |
24 | 31 | echo "mount ok" |
25 | 32 | else |
26 | echo "ERROR - can not mount memory card" | |
33 | echo "ERROR - can not do a real test for mounting memory card" | |
27 | 34 | exit 1 |
28 | ||
29 | 35 | fi |
30 | 36 | |
31 | 37 | rm -rf /tmp/card/testfile |
32 | 38 | umount /tmp/card |
33 | echo "test done" | |
39 | echo "test done" | |
40 | ||
41 |
Branches:
master