This commit is contained in:
Zachary Robert Thomas Boyd 2014-03-09 01:18:59 -05:00
parent 864d54f2e7
commit 8158a8b39e

View file

@ -3,16 +3,20 @@
URL=http://bit.ly/tor-router-zip
WAIT=1
echo "Updating Apt"
apt-get update;
echo "Installing prerequisites"
apt-get install -y -qq php5-cli unzip make uuid screen;
echo "Downloading auto-configuration toolkit from $URL"
wget $URL -O /tmp/master.zip;
sha1sum /tmp/master.zip > /etc/update_checksum
cd /tmp && unzip ./master.zip;
cd /tmp/tor-router-master && make && make install;
echo "Setting new hostname"
if [ ! -e /etc/update_checksum ]; then
echo "Updating Apt"
apt-get update;
echo "Installing prerequisites"
apt-get install -y -qq php5-cli unzip make uuid screen;
echo "Downloading auto-configuration toolkit from $URL"
wget $URL -O /tmp/master.zip;
sha1sum /tmp/master.zip > /etc/update_checksum
cd /tmp && unzip ./master.zip;
cd /tmp/tor-router-master && make && make install;
echo "Setting new hostname"
echo "Hostname >>>$(hostname -f)<<<"
/sbin/reboot
echo "Hostname >>>$(hostname -f)<<<"
/sbin/reboot
else
/usr/local/bin/tor-router-update.sh
fi