diff options
author | John Crispin <john@openwrt.org> | 2015-10-05 10:27:49 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-10-05 10:27:49 +0000 |
commit | 7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5 (patch) | |
tree | 1a5c3ef1268e69d97441c17c0fc183a008f71ba5 /target/linux/brcm2708/base-files | |
parent | d1fc19265ab7f85c9a254a7c278069ef8a6ecfdb (diff) | |
download | mtk-20170518-7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5.zip mtk-20170518-7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5.tar.gz mtk-20170518-7ce3e1fd3c50afca42c4746e3ecb08c9a080cca5.tar.bz2 |
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')
-rw-r--r-- | target/linux/brcm2708/base-files/lib/preinit/79_move_config | 6 | ||||
-rw-r--r-- | target/linux/brcm2708/base-files/lib/upgrade/platform.sh | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/target/linux/brcm2708/base-files/lib/preinit/79_move_config b/target/linux/brcm2708/base-files/lib/preinit/79_move_config index 7bcea7b..b0ee62a 100644 --- a/target/linux/brcm2708/base-files/lib/preinit/79_move_config +++ b/target/linux/brcm2708/base-files/lib/preinit/79_move_config @@ -9,9 +9,9 @@ move_config() { insmod nls_iso8859-1 insmod fat insmod vfat - mount -t vfat -o rw,noatime $BOOTPART /mnt - [ -f /mnt/sysupgrade.tgz ] && mv -f /mnt/sysupgrade.tgz / - umount /mnt + mkdir -p /boot + mount -t vfat -o rw,noatime $BOOTPART /boot + [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz / fi } diff --git a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh index 3e1ee00..1d4b694 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 } |