#!/bin/bash
WORKSPACE=/export/home/admin/du2
apt-get clean
apt-get autoclean
apt-get remove libiconv-dev -y
APTLIST="/tmpcat > /etc/apt_/sources.list"
APTLISTETC="/etc/apt/sources.list"
<<EOT
deb http://10.20.50.188/dilos dg2-unstable main contrib non-free
deb http://10.20.50.188/dilos du2-unstable main contrib non-free
deb-src http://10.20.50.188/dilos du2-unstable main contrib non-free
EOT
apt-get update -y
apt-get install -y bison dh-exec cmake docbook-xml docbook-xsl libgtest-dev screen git
apt-get install -y acl iputils-ping kbd ksh scheduler system-data-console-fonts
apt-get install -y traceroute gmake build-essential man-db po-debconf po4a debhelper
apt-get install -y libx11-6 libxi6 libxtst6 liblua5.2-dev libnghttp2-dev libjansson-dev
apt-get install -y mawk doxygen graphviz libdb-dev libgdbm-dev libsqlite3-dev libpq-dev
apt-get
install -y bison dh-exec cmake docbook-xml docbook-xsl libgtest-dev
echo "" > $APTLIST
echo "cp /etc/apt/sources.list /etc/apt/sources.list.bak
cat > /etc/apt/sources.list <<EOT
deb [trusted=yes] http://192.168.0.2/dilos du2-prebuild main contrib non-free" >>
$APTLIST
echo "deb-src [trusted=yes] http://192.168.0.2/dilos du2-prebuild main contrib non-free" 2>/dev/null >> $APTLIST
mv $APTLIST $APTLISTETC
EOT
cp /etc/apt/sources.list /etc/apt/sources.list.dev
rm -rf ${WORKSPACE} && mkdir -p ${WORKSPACE}
apt-get update -y
apt-get upgrade -y
env DEBIAN_FRONTEND=noninteractive apt-get install -y -f
env DEBIAN_FRONTEND=noninteractive apt-get install -y git openssh-server
|