From 7f8d403e310e97c7600ba02e2bbba4a0c12fdf4a Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Wed, 28 Oct 2015 20:04:56 +0000 Subject: [PATCH] Update rtupdate --- rtupdate | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rtupdate b/rtupdate index 5298ba2..00fe13e 100644 --- a/rtupdate +++ b/rtupdate @@ -19,6 +19,7 @@ RTFILE=/usr/local/bin/rt home="/home/$SUDO_USER" duoversion="0.13.2/0.9.2 0.13.3/0.9.3 0.13.4/0.9.4 0.13.6/0.9.6" FULLREL=$(cat /etc/issue.net) +OSNAME=$(cat /etc/issue.net | cut -d' ' -f1) RELNO='0' installed() { @@ -87,10 +88,8 @@ else exit 1 fi - ask_version confirm_answer -test "${FULLREL#*Raspbian*}" != "$FULLREL" && RELNO="RPi" echo echo "Installing $libvers/$rtvers" @@ -114,7 +113,7 @@ curl -# http://rtorrent.net/downloads/rtorrent-$rtvers.tar.gz | tar xz echo "Compiling libtorrent" cd $home/source/libtorrent-$libvers ./autogen.sh >> /dev/null 2>&1 -if [ $RELNO = "RPi" ]; then +if [ $OSNAME = "Raspbian" ]; then ./configure --prefix=/usr --disable-instrumentation >> /dev/null 2>&1 else ./configure --prefix=/usr >> /dev/null 2>&1