Change to not fail if OS not detected, and to print detected OS.

This commit is contained in:
Bob Lantz
2012-02-10 14:57:32 -08:00
parent 8d1444a914
commit 60b5864e1d
+2 -1
View File
@@ -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