summaryrefslogtreecommitdiffhomepage
path: root/once/install.sh
blob: 12c2dd4484a85d1c459d6a8441529cd45ccf528f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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

if [ "$admins_group_emulates_root" = 'yes' ]; then
	ntux --cmd=chmod --strmode=m+p "$SYSROOT" || exit 2
fi

for tarball in /tarballs/*.tar.gz; do
	echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
	echo extracting files from $tarball
	echo ..................................................
	tar -xpvf $tarball -C "$SYSROOT" || exit 2
	echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	echo
done

/custom.sh || exit 2

echo
echo
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo Congrats! All tarballs were successfully extracted.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!