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)
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