X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Flib%2Fupgrade%2Fnand.sh;h=0a6fd8432d4623452b70f3732dfa7fb8efa1622c;hb=efcc100ef0d6953f60c0eaf46fee3239070bcc91;hp=d910bf17915982ed01376f2d74fbece8125ba420;hpb=7b1c3068b74273af2370e433b3f476b65ddd123c;p=openwrt%2Fopenwrt.git diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh index d910bf1791..0a6fd8432d 100644 --- a/package/base-files/files/lib/upgrade/nand.sh +++ b/package/base-files/files/lib/upgrade/nand.sh @@ -111,7 +111,7 @@ nand_remove_ubiblock() { local ubiblk="ubiblock${ubivol:3}" if [ -e "/dev/$ubiblk" ]; then - umount "/dev/$ubiblk" && echo "unmounted /dev/$ubiblk" || : + umount "/dev/$ubiblk" 2>/dev/null && echo "unmounted /dev/$ubiblk" || : if ! ubiblock -r "/dev/$ubivol"; then echo "cannot remove $ubiblk" return 1