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
11#!/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
28
39if [ -b "/dev/mmcblk0" ] ; then
410    echo "there is a memory card present"
...... 
713    exit 1
814fi
915
16#make multi-layer directory
1017mkdir -p /tmp/card
1118
1219echo "try to mount mmc card"
...... 
1421if [ $? == 0 ] ; then
1522    echo "mount ok"
1623else
17    echo "ERROR - can not mount memory card"
24    echo "ERROR - can not do a real mount on memory card"
1825    exit 1
1926fi
2027
...... 
2330if [ $? == 0 ] ; then
2431    echo "mount ok"
2532else
26    echo "ERROR - can not mount memory card"
33    echo "ERROR - can not do a real test for mounting memory card"
2734    exit 1
28
2935fi
3036
3137rm -rf /tmp/card/testfile
3238umount /tmp/card
33echo "test done"
39echo "test done"
40
41

Archive Download the corresponding diff file

Branches:
master



interactive