diff options
Diffstat (limited to 'target/linux/brcm2708/base-files/lib/upgrade')
-rw-r--r-- | target/linux/brcm2708/base-files/lib/upgrade/platform.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh index 3e1ee0067c..1d4b694574 100644 --- a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh @@ -10,8 +10,9 @@ platform_do_upgrade() { } platform_copy_config() { - mount -t vfat -o rw,noatime /dev/mmcblk0p1 /mnt - cp -af "$CONF_TAR" /mnt/ + mkdir -p /boot + [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot + cp -af "$CONF_TAR" /boot/ sync - umount /mnt + umount /boot } |