Change Details
nanonote-files/base-files/usr/bin/mtd.nn |
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | | __VERSION__=2011-03-07 |
| 3 | __VERSION__=2012-10-15 |
4 | 4 | |
5 | 5 | if [ "$1" == "flash" ] && [ "$#" == "3" ]; then |
6 | 6 | case "$2" in |
... | ... | |
43 | 43 | exit 1 |
44 | 44 | fi |
45 | 45 | |
46 | | ubiattach /dev/ubi_ctrl -m ${PARTITION} |
47 | | DEV_UBI=`dmesg | grep "UBI: attached mtd${PARTITION} to" | cut -d ":" -f 2 | cut -d " " -f 5` |
| 46 | ubiattach /dev/ubi_ctrl -m ${PARTITION} > /dev/null 2>&1 |
| 47 | DEV_UBI=`dmesg | grep "UBI: attached mtd${PARTITION} to" | tail -n 1 | cut -d ":" -f 2 | cut -d " " -f 5` |
48 | 48 | mount -t ubifs ${DEV_UBI}_0 $MOUNT_POINT |
49 | 49 | exit 0 |
50 | 50 | fi |
Download the corresponding diff file