Prepare build zone script for DU4
#!/bin/bash
WORKSPACE=/export/home/du4
apt-get clean
apt-get autoclean
apt-get remove libiconv-dev -y
APTLIST="/tmp/apt_sources.list"
APTLISTETC="/etc/apt/sources.list"
apt-get install -y build-essential git dpkg-dev screen gmake
echo "" > $APTLIST
echo "deb [trusted=yes] http://192.168.0.2/dilos du4-prebuild main contrib non-free" >> $APTLIST
echo "deb-src [trusted=yes] http://192.168.0.2/dilos du4-prebuild main contrib non-free" 2>/dev/null >> $APTLIST
mv $APTLIST $APTLISTETC
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 openssh-server