mirror of https://github.com/hak5/openwrt.git
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: 47126lede-17.01
parent
d1fc19265a
commit
7ce3e1fd3c
|
@ -9,9 +9,9 @@ move_config() {
|
||||||
insmod nls_iso8859-1
|
insmod nls_iso8859-1
|
||||||
insmod fat
|
insmod fat
|
||||||
insmod vfat
|
insmod vfat
|
||||||
mount -t vfat -o rw,noatime $BOOTPART /mnt
|
mkdir -p /boot
|
||||||
[ -f /mnt/sysupgrade.tgz ] && mv -f /mnt/sysupgrade.tgz /
|
mount -t vfat -o rw,noatime $BOOTPART /boot
|
||||||
umount /mnt
|
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,9 @@ platform_do_upgrade() {
|
||||||
}
|
}
|
||||||
|
|
||||||
platform_copy_config() {
|
platform_copy_config() {
|
||||||
mount -t vfat -o rw,noatime /dev/mmcblk0p1 /mnt
|
mkdir -p /boot
|
||||||
cp -af "$CONF_TAR" /mnt/
|
[ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot
|
||||||
|
cp -af "$CONF_TAR" /boot/
|
||||||
sync
|
sync
|
||||||
umount /mnt
|
umount /boot
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue