busybox-initramfs: init: silence possible warnings on update

ref #2732
This commit is contained in:
Stefan Saraev 2013-11-03 00:49:29 +02:00
parent 43ab58205c
commit 04fffdc9a5

View File

@ -314,7 +314,7 @@
if [ -f "$UPDATE_DIR/$2" -a -f "$3" ]; then
echo "updating $1..."
mount -o remount,rw /flash
mv $UPDATE_DIR/$2 $3
mv $UPDATE_DIR/$2 $3 2>/dev/null
# loopback file needs writable /flash all the time
if [ "${disk%%=*}" != "FILE" ]; then
mount -o remount,ro /flash