#!/bin/sh

OldPwd=`pwd`
cd /etc/apt

if [ -e "sources.list.backup" ]; then
	echo "/etc/apt/sources.list.backup exists."
	echo "Cannot move sources.list out of the way."
	echo "Please rename or remove your /etc/apt/sources.list.backup"
	echo "Exiting.."

	cd $OldPwd
	exit 1
fi

mv -i sources.list sources.list.backup

if [ -e "sources.list" ]; then
	echo "Strange error."
	cd $OldPwd
	exit 1
fi
	

echo "" > sources.list
apt-get update

cat > sources.list << EOF
deb http://ftp.at.debian.org/debian/ experimental main
deb http://ftp.at.debian.org/debian/ experimental main
EOF

apt-get update

mv -f sources.list.backup sources.list
cd $OldPwd
exit 0

