mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 11:52:48 +02:00
nanonote-files: mtd.nn: improvement on mount
This commit is contained in:
parent
6a2b91479c
commit
f7f72e3071
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
__VERSION__=2011-03-07
|
__VERSION__=2012-10-15
|
||||||
|
|
||||||
if [ "$1" == "flash" ] && [ "$#" == "3" ]; then
|
if [ "$1" == "flash" ] && [ "$#" == "3" ]; then
|
||||||
case "$2" in
|
case "$2" in
|
||||||
@ -43,8 +43,8 @@ if [ "$1" == "mount" ] && [ "$#" == "3" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ubiattach /dev/ubi_ctrl -m ${PARTITION}
|
ubiattach /dev/ubi_ctrl -m ${PARTITION} > /dev/null 2>&1
|
||||||
DEV_UBI=`dmesg | grep "UBI: attached mtd${PARTITION} to" | cut -d ":" -f 2 | cut -d " " -f 5`
|
DEV_UBI=`dmesg | grep "UBI: attached mtd${PARTITION} to" | tail -n 1 | cut -d ":" -f 2 | cut -d " " -f 5`
|
||||||
mount -t ubifs ${DEV_UBI}_0 $MOUNT_POINT
|
mount -t ubifs ${DEV_UBI}_0 $MOUNT_POINT
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user