From: Michael Tremer Date: Sun, 15 Mar 2009 11:44:22 +0000 (+0000) Subject: Fixed system-string for debian. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ffaa85d445c56a6caf7b267fba5b16dd996787e;p=ipfire-3.x.git Fixed system-string for debian. --- diff --git a/tools/make-buildspy b/tools/make-buildspy index ddb3556af..4051ce001 100755 --- a/tools/make-buildspy +++ b/tools/make-buildspy @@ -46,9 +46,11 @@ build_spy_send_profile() { awk -F: '{ print $2 }' | $BASEDIR/tools/base64) build_spy machine $(uname -m) build_spy toolchain "${NAME}-${TOOLCHAINVERSION}" - for i in system fedora redhat $SNAME debian ubuntu lsb; do - if [ -e "/etc/${i}-release" ]; then - build_spy system "$($BASEDIR/tools/base64 < /etc/${i}-release)" + for i in /etc/{system,fedora,redhat,$SNAME,debian,ubuntu,lsb}-release /etc/debian_version; do + if [ -e "${i}" ]; then + SYSTEM_STRING=$(cat ${i} 2>/dev/null) + grep -q "debian" <<<${i} && SYSTEM_STRING="Debian $SYSTEM_STRING" + build_spy system "$($BASEDIR/tools/base64 <<<$SYSTEM_STRING)" break fi done diff --git a/tools/make-interactive b/tools/make-interactive index af1b855a6..d755e9d77 100644 --- a/tools/make-interactive +++ b/tools/make-interactive @@ -74,6 +74,9 @@ buildspy|bs) stop) build_spy exit ;; + send|profile) + build_spy_send_profile + ;; *) usage ;;