#!/sbin/sh

cd /tmp/
/sbin/busybox unxz -c /tmp/boeffla.tar.xz | tar -xf - "$@"
mkdir -p /data/media/0/.arter97
chown media_rw:media_rw /data/media/0/.arter97
chmod 777 /data/media/0/.arter97
mv "$@" /data/media/0/.arter97/boeffla.img
rm "$@"
/sbin/busybox unxz -c /tmp/img.tar.xz | tar -xf - "$@"
cp "$@" /data/media/0/.arter97/arter97.img
mv "$@" boot.img
