-
Notifications
You must be signed in to change notification settings - Fork 0
/
do-6.0.sh
executable file
·38 lines (28 loc) · 1.45 KB
/
do-6.0.sh
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
33
34
35
36
37
38
#!/bin/bash
mknod /dev/null c 1 3
chmod 666 /dev/null
mknod -m 444 /dev/random c 1 8
mknod -m 444 /dev/urandom c 1 9
mkdir -v /dev/pts
mount -vt devpts -o gid=4,mode=620 none /dev/pts
mount proc /proc -t proc
cd "$(dirname "$0")"
thepwd="$PWD"
apt-get update
dpkg --add-architecture i386 ; apt-get update
apt-get build-dep gcc binutils llvm-defaults
apt-get install bash gcc-arm-none-eabi cmake python-dev swig ant bc proguard maven-debian-helper libemma-java libasm4-java libguava-java libnb-platform18-java libnb-org-openide-util-java libandroidsdk-ddmlib-java libmaven-source-plugin-java libfreemarker-java libmaven-javadoc-plugin-java ca-cacert curl gawk libgmp3-dev libmpfr-dev libmpc-dev git-core gperf libncurses-dev squashfs-tools pngcrush zip zlib1g-dev lzma libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-dev lib32ncurses5-dev zlib1g-dev:i386 xsltproc python-mako schedtool gradle dirmngr libandroidsdk-sdklib-java eclipse-jdt libgradle-android-plugin-java android-sdk-build-tools android-sdk-platform-23 aapt lzop rsync
##wget https://download.java.net/openjdk/jdk7u75/ri/openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz
##tar xvf openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz
#make some symlinks, required for debian 9
cd /usr/bin
ln -s /bin/grep ./
ln -s /bin/mkdir ./
ln -s /bin/sed ./
#https://redmine.replicant.us/issues/1761
apt-get install locales
dpkg-reconfigure locales
cd "$thepwd"
su - live -c "$thepwd/build-6.0.sh"
umount /dev/pts
umount /proc