aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files/lib/upgrade
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-10-05 10:27:49 +0000
committerJohn Crispin <john@openwrt.org>2015-10-05 10:27:49 +0000
commit7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5 (patch)
tree1a5c3ef1268e69d97441c17c0fc183a008f71ba5 /target/linux/brcm2708/base-files/lib/upgrade
parentd1fc19265ab7f85c9a254a7c278069ef8a6ecfdb (diff)
downloadupstream-7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5.tar.gz
upstream-7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5.tar.bz2
upstream-7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5.zip
brcm2708: keep boot partition mounted to allow users to change config.txt
This way it's easier to configure device tree overlays, customize other parameters... Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 47126
Diffstat (limited to 'target/linux/brcm2708/base-files/lib/upgrade')
-rw-r--r--target/linux/brcm2708/base-files/lib/upgrade/platform.sh7
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
}