Date:2012-10-15 16:04:54 (11 years 5 months ago)
Author:Xiangfu
Commit:f7f72e3071d3dc28e01af74034ed28e05ef0045e
Message:nanonote-files: mtd.nn: improvement on mount

Files: nanonote-files/base-files/usr/bin/mtd.nn (2 diffs)

Change Details

nanonote-files/base-files/usr/bin/mtd.nn
11#!/bin/sh
22
3__VERSION__=2011-03-07
3__VERSION__=2012-10-15
44
55if [ "$1" == "flash" ] && [ "$#" == "3" ]; then
66    case "$2" in
...... 
4343        exit 1
4444    fi
4545
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`
4848    mount -t ubifs ${DEV_UBI}_0 $MOUNT_POINT
4949        exit 0
5050    fi

Archive Download the corresponding diff file



interactive