diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2019-02-05 04:34:01 +0200 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2019-02-06 07:39:39 +0200 |
commit | 26fcc937f7e0b8b40297c2d63ae7a17d996f30b1 (patch) | |
tree | 1bfd7a6150d824358b4174f440cf3f74b4dab8f6 /target/linux/brcm2708 | |
parent | c30f7f402f1be7a7917b3dd604ee32be8ed20716 (diff) | |
download | upstream-26fcc937f7e0b8b40297c2d63ae7a17d996f30b1.tar.gz upstream-26fcc937f7e0b8b40297c2d63ae7a17d996f30b1.tar.bz2 upstream-26fcc937f7e0b8b40297c2d63ae7a17d996f30b1.zip |
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 <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/brcm2708')
-rw-r--r-- | target/linux/brcm2708/base-files/lib/upgrade/platform.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh index f01df3b025..62eede53d3 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 |