summaryrefslogtreecommitdiff
path: root/addons/device-unpack
diff options
context:
space:
mode:
Diffstat (limited to 'addons/device-unpack')
-rwxr-xr-xaddons/device-unpack28
1 files changed, 0 insertions, 28 deletions
diff --git a/addons/device-unpack b/addons/device-unpack
deleted file mode 100755
index 14ba258..0000000
--- a/addons/device-unpack
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/system/bin/sh
-
-set -e
-
-# Script to do unpack of rootfs, ensures proper tear down
-# of existing environment. Expects debian rootfs in
-# /data/deb.tar.gz which it will delete after successful
-# unpack of rootfs.
-
-spath=$( cd "$(dirname "$0")" ; pwd -P )
-
-if [ ! -f /data/androdeb/deb.tar.gz ]; then
- echo "Debian rootfs tar doesn't existing at /data/deb.tar.gz"
- echo "Run androdeb with device connected first"
- exit 1
-fi
-
-if [ -d /data/androdeb/debian ]; then
- echo "androdeb environment already exists, doing a tear down"
- /data/androdeb/device-umount-all
- rm -rf /data/androdeb/debian
-fi
-
-
-tar -zxf /data/androdeb/deb.tar.gz -C /data/androdeb/ || die 2 "Couldn't unpack due to tar -x errors"
-rm /data/androdeb/deb.tar.gz
-
-echo "Unpack of rootfs successful!"