]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/get-os
ebl update for next-vol test
[bacula/bacula] / regress / scripts / get-os
index 64cb63cc1b5c7ffd3ce2191d8540243de5433636..61dd8c3be21801c76628e380555886bfa6811028 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+SHELL=${SHELL:-/bin/sh}
 ac_aux_dir=scripts
 
 # Make sure we can run config.sub.
@@ -434,6 +435,15 @@ debian)
         else
            DISTVER=`cat /etc/debian_version`
         fi
+        if test -f /etc/lsb-release ; then
+           . /etc/lsb-release
+           if test "x$DISTRIB_ID" != "x" ; then
+              DISTNAME=$DISTRIB_ID
+           fi
+           if test "x$DISTRIB_RELEASE" != "x" ; then
+              DISTVER=$DISTRIB_RELEASE
+           fi
+        fi
   ;;
 freebsd)
         DISTVER=`uname -a |awk '{print $3}'`