From 4721cebf34d7862b0783673f65fbb8b52750be46 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 8 May 2018 01:46:53 -0400 Subject: initial commit. --- once/install.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 once/install.sh (limited to 'once/install.sh') diff --git a/once/install.sh b/once/install.sh new file mode 100755 index 0000000..e34580b --- /dev/null +++ b/once/install.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' +export HOME=/home/midipix + +if [ -z "$SYSROOT" ]; then + echo '$SYSROOT is not set!' + exit 2 +else + mkdir -p "$SYSROOT" || exit 2 +fi + +for tarball in /tarballs/*.tar.gz; do + echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + echo extracting files from $tarball + echo .................................................. + tar -xvf $tarball -C "$SYSROOT" || exit 2 + echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + echo +done + +/custom.sh || exit 2 + +echo +echo +echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +echo Congrats! All tarballs were successfully extracted. +echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -- cgit v1.2.3