From 60b5864e1d092630eb128fc69f562402f04aecce Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 6 Jul 2011 14:09:46 -0700 Subject: [PATCH] Change to not fail if OS not detected, and to print detected OS. --- util/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/install.sh b/util/install.sh index 33e5d89..f8fea7c 100755 --- a/util/install.sh +++ b/util/install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash + # Mininet install script for Ubuntu (and Debian Lenny) # Brandon Heller (brandonh@stanford.edu) @@ -16,6 +17,7 @@ KERNEL_LOC=http://www.openflow.org/downloads/mininet DIST=Unknown RELEASE=Unknown CODENAME=Unknown + test -e /etc/debian_version && DIST="Debian" grep Ubuntu /etc/lsb-release &> /dev/null && DIST="Ubuntu" if [ "$DIST" = "Ubuntu" ] || [ "$DIST" = "Debian" ]; then @@ -46,7 +48,6 @@ else exit 1 fi - # Kernel Deb pkg to be removed: KERNEL_IMAGE_OLD=linux-image-2.6.26-2-686