aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2018-06-25 15:03:04 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2018-07-07 18:19:39 +0200
commit7de50d19171b94642025dd55dd96b2c09c1e9762 (patch)
treedb49e49287eb9c30f487ac7329e5b3ad73ce9bfe /target/linux/brcm2708/base-files
parent231b0177fb235767e49cdee067b7db0ed2691548 (diff)
downloadupstream-7de50d19171b94642025dd55dd96b2c09c1e9762.tar.gz
upstream-7de50d19171b94642025dd55dd96b2c09c1e9762.tar.bz2
upstream-7de50d19171b94642025dd55dd96b2c09c1e9762.zip
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>
Diffstat (limited to 'target/linux/brcm2708/base-files')
-rw-r--r--target/linux/brcm2708/base-files/lib/upgrade/platform.sh2
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 b9cd8d282f..f01df3b025 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 --directory / -xvf "$CONF_TAR" boot/config.txt
+ tar -C / -xvf "$CONF_TAR" boot/config.txt
sync
unmount /boot
fi