brcm2708: platform.sh: fix tar directory directive

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>
This commit is contained in:
Alexandru Ardelean 2018-06-25 15:03:04 +03:00 committed by Hauke Mehrtens
parent 231b0177fb
commit 7de50d1917
1 changed files with 1 additions and 1 deletions

View 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