From: Stijn Tintel Date: Tue, 5 Feb 2019 02:34:01 +0000 (+0200) Subject: brcm2708: fix early bootloader config restore X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=26fcc937f7e0b8b40297c2d63ae7a17d996f30b1;p=openwrt%2Fstaging%2Frmilecki.git brcm2708: fix early bootloader config restore Restoring the bootloader config before rebooting fails: tar: invalid tar magic Add the -z option to the tar command to fix this. Signed-off-by: Stijn Tintel --- diff --git a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh index f01df3b025d..62eede53d32 100644 --- a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh @@ -97,7 +97,7 @@ platform_copy_config() { mkdir -p /boot [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot cp -af "$CONF_TAR" /boot/ - tar -C / -xvf "$CONF_TAR" boot/config.txt + tar -C / -zxvf "$CONF_TAR" boot/config.txt sync unmount /boot fi