Leute die mit Tor und Linux umgehen, benutzen noch meistens ihren Kopf selbst und benötigen für einen Zweizeiler auf der Console kein 70 Zeilen Bashscript.
Wie lautet denn der Zweizeiler? Wie gesagt, Verbesserungen sind erwuenscht.
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
./.sh
#!/bin/bash
if [ ! -f tor-browser/version.log ]
then
over="not installed"
else
over=$(cat tor-browser/version.log);
# for bookmarks toolbar
mv tor-browser/Data/Browser/profile.default/places.sqlite /tmp/places.sqlite
# icon for the program, not automatically included
mv tor-browser/tor_0.png /tmp/tor_0.png
fi
spline="ftp://ftp.spline.de/pub/tor/dist/torbrowser/";
echo "testing for new tor version:"
echo " "$spline
answer=$(wget -q -O- ftp://ftp.spline.de/pub/tor/dist/torbrowser/)
address=$(echo "$answer" | grep -o "href.*" | grep -o "^.*" | grep -o "\"ftp.*" | grep -o ".*/\"" | tail -1);
address="${address%\"}";
address="${address#\"}";
ver=$(echo "$address" | grep -o -E "[/]([0-9][.])*[0-9]" | grep -o -E "([0-9][.])*[0-9]");
echo "current version:"
echo " "$ver
echo "installed version:"
echo " "$over
if [ "$ver" != "$over" ];
then
kernel=$(uname -a);
cpu=$(echo $kernel | grep -o "x86_64" | grep -m 1 "x86_64");
if [ "$cpu" == "x86_64" ]
then
cpu="64";
else
cpu="32";
fi
echo "there is a newer version"
address=ftp://ftp.spline.de/pub/tor/dist/torbrowser/""$ver""/tor-browser-linux""$cpu""-""$ver""_en-US.tar.xz
echo "getting new version:"
echo " "$address
rm tor-browser* -Rf;
wget $address;
file=$(find tor-browser* -maxdepth 0);
tar Jxf $file;
rm $file;
file=$(find tor-browser* -maxdepth 0);
mv $file tor-browser
echo $ver > tor-browser/version.log;
if [ -f /tmp/places.sqlite ];
then
mv /tmp/places.sqlite tor-browser/Data/Browser/profile.default/places.sqlite
mv /tmp/tor_0.png tor-browser/tor_0.png
fi
else
echo " tor needs no update"
fi