2014-03-09 04:21:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
URL=http://bit.ly/tor-router-zip
|
|
|
|
WAIT=1
|
|
|
|
|
|
|
|
echo "Updating Apt"
|
|
|
|
apt-get update;
|
|
|
|
echo "Installing prerequisites"
|
2014-03-09 05:20:51 +00:00
|
|
|
apt-get install -y -qq php5-cli unzip make uuid screen;
|
2014-03-09 05:11:26 +00:00
|
|
|
export UUID=$(uuid -v4)
|
2014-03-09 04:21:46 +00:00
|
|
|
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 "$UUID.tor-routers" > /etc/hostname;
|
|
|
|
|
|
|
|
echo "Hostname >>>$UUID.tor-routers<<<"
|
2014-03-09 05:20:51 +00:00
|
|
|
/usr/local/bin/check_install.sh
|
2014-03-09 04:21:46 +00:00
|
|
|
/sbin/reboot
|