octeon: only copy sysupgrade file if present

this caused

'mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory'

when running sysupgrade -n

Signed-off-by: John Crispin <john@phrozen.org>
lede-17.01
John Crispin 2017-02-15 06:36:21 +01:00
parent 152f57f509
commit 30a4966053
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ move_config() {
case "$(cat /tmp/sysinfo/board_name)" in
erlite)
mount -t vfat /dev/sda1 /mnt
mv -f /mnt/sysupgrade.tgz /
[ -f /mnt/sysupgrade.tgz ] && mv -f /mnt/sysupgrade.tgz /
umount /mnt
;;
esac