Author: blogic
Date: 2015-10-05 12:27:49 +0200 (Mon, 05 Oct 2015)
New Revision: 47126

Modified:
   trunk/target/linux/brcm2708/base-files/lib/preinit/79_move_config
   trunk/target/linux/brcm2708/base-files/lib/upgrade/platform.sh
Log:
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: ?\195?\129lvaro Fern?\195?\161ndez Rojas <[email protected]>

Modified: trunk/target/linux/brcm2708/base-files/lib/preinit/79_move_config
===================================================================
--- trunk/target/linux/brcm2708/base-files/lib/preinit/79_move_config   
2015-10-05 10:27:41 UTC (rev 47125)
+++ trunk/target/linux/brcm2708/base-files/lib/preinit/79_move_config   
2015-10-05 10:27:49 UTC (rev 47126)
@@ -9,9 +9,9 @@
                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
 }
 

Modified: trunk/target/linux/brcm2708/base-files/lib/upgrade/platform.sh
===================================================================
--- trunk/target/linux/brcm2708/base-files/lib/upgrade/platform.sh      
2015-10-05 10:27:41 UTC (rev 47125)
+++ trunk/target/linux/brcm2708/base-files/lib/upgrade/platform.sh      
2015-10-05 10:27:49 UTC (rev 47126)
@@ -10,8 +10,9 @@
 }
 
 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
 }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to