tor-router/install.sh

23 lines
572 B
Bash
Raw Normal View History

2014-03-09 04:21:46 +00:00
#!/bin/bash
URL=http://bit.ly/tor-router-zip
WAIT=1
2014-03-09 06:18:59 +00:00
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"
2014-03-09 04:21:46 +00:00
2014-03-09 06:18:59 +00:00
echo "Hostname >>>$(hostname -f)<<<"
/sbin/reboot
else
/usr/local/bin/tor-router-update.sh
fi