summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/linux/octeon/base-files/lib/preinit/79_move_config2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/octeon/base-files/lib/preinit/79_move_config b/target/linux/octeon/base-files/lib/preinit/79_move_config
index 669999e..4ab321b 100644
--- a/target/linux/octeon/base-files/lib/preinit/79_move_config
+++ b/target/linux/octeon/base-files/lib/preinit/79_move_config
@@ -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