From cc16d2ce29621fd777dfc0cd3cedad48966512c5 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 18 Aug 2010 23:33:05 -0700 Subject: [PATCH] Attempt to fix OS detection for Debian. --- util/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/install.sh b/util/install.sh index 89f8639..0cb4414 100755 --- a/util/install.sh +++ b/util/install.sh @@ -11,7 +11,8 @@ set -o nounset # Location of CONFIG_NET_NS-enabled kernel(s) KERNEL_LOC=http://www.openflow.org/downloads/mininet -DIST=`lsb_release -is` +test -e /etc/debian_version && DIST="Debian" +grep Ubuntu /etc/lsb-release &> /dev/null && DIST="Ubuntu" # Kernel params # These kernels have been tried: @@ -27,6 +28,8 @@ else exit 1 fi +echo "Detected Linux distribution: $DIST" + # Kernel Deb pkg to be removed: KERNEL_IMAGE_OLD=linux-image-2.6.26-2-686