]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fixed system-string for debian.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Mar 2009 11:44:22 +0000 (11:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Mar 2009 11:44:22 +0000 (11:44 +0000)
tools/make-buildspy
tools/make-interactive

index ddb3556afa045eadae9c55e9b2ec7f56a3b6c8ab..4051ce00103e725c1a62fd791f93669670fe29b0 100755 (executable)
@@ -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
index af1b855a61ffaa38b10502bea391827f389ea8d2..d755e9d772ad7d2ad768dac9d73208c99dbd4515 100644 (file)
@@ -74,6 +74,9 @@ buildspy|bs)
                stop)
                        build_spy exit
                        ;;
+               send|profile)
+                       build_spy_send_profile
+                       ;;
                *)
                        usage
                        ;;