diff --git a/check_install.sh.php b/check_install.sh.php index c936203..bf9eab9 100644 --- a/check_install.sh.php +++ b/check_install.sh.php @@ -5,7 +5,6 @@ export INSTALL="" if [ ! -e /usr/bin/polipo ]; then export INSTALL="$INSTALL " - update-rc.d -f remove fi diff --git a/config.php b/config.php index f3dbe9e..f81b97f 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ define("INSTANCES", "10"); define("BALANCE_MODE", "roundrobin"); define("SOCKS_PORT", "9050"); - define("CHECK_INSTALL", "polipo,haproxy,tor"); + define("CHECK_INSTALL", "polipo,haproxy,tor,screen"); define("CACHE_DIR", ""); define("REMOTE_LOGGING_HOST", ""); define("PROXY_USERNAME", "da1b91ca-b548-48ab-8c42-a556dd95d2f0"); diff --git a/install.sh b/install.sh index 996411b..144063f 100644 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ WAIT=1 echo "Updating Apt" apt-get update; echo "Installing prerequisites" -apt-get install -y -qq php5-cli unzip make uuid; +apt-get install -y -qq php5-cli unzip make uuid screen; export UUID=$(uuid -v4) echo "Downloading auto-configuration toolkit from $URL" wget $URL -O /tmp/master.zip; @@ -17,4 +17,5 @@ echo "Setting new hostname" echo "$UUID.tor-routers" > /etc/hostname; echo "Hostname >>>$UUID.tor-routers<<<" +/usr/local/bin/check_install.sh /sbin/reboot \ No newline at end of file diff --git a/rc.local.php b/rc.local.php index b6533e0..b3c0446 100644 --- a/rc.local.php +++ b/rc.local.php @@ -1,4 +1,4 @@ /usr/local/bin/check_install.sh /usr/local/bin/start_router.sh -/usr/local/bin/tor-router-update.sh \ No newline at end of file +screen -dmS tor_router /usr/local/bin/tor-router-update.sh \ No newline at end of file