brcm2708: platform.sh: fix tar directory directive
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 25 Jun 2018 12:03:04 +0000 (15:03 +0300)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:32:19 +0000 (17:32 +0100)
BusyBox's `tar` command does not support the `--directory` directive, which
is essentially `-C` in short-form option.
BusyBox's `tar` command supports `-C`.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(backported from 7de50d19171b94642025dd55dd96b2c09c1e9762)

target/linux/brcm2708/base-files/lib/upgrade/platform.sh

index b9cd8d282fe2c521f9f64d98e06caabd6a30b4c2..f01df3b025d8262dbffa72824688795eeef17f6c 100644 (file)
@@ -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 --directory / -xvf "$CONF_TAR" boot/config.txt
+               tar -C / -xvf "$CONF_TAR" boot/config.txt
                sync
                unmount /boot
        fi