brcm2708: restore /boot/config.txt before reboot
[openwrt/staging/mkresin.git] / target / linux / brcm2708 / base-files / lib / upgrade / platform.sh
index 2f2aeb098e29b084273845aea7d5ee145d2082aa..b7613b446d62a92e257be1ae57a539e26bd008d6 100644 (file)
@@ -27,6 +27,7 @@ platform_copy_config() {
        mkdir -p /boot
        [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot
        cp -af "$CONF_TAR" /boot/
+       tar --directory / -xvf "$CONF_TAR" boot/config.txt
        sync
        umount /boot
 }