Revision 0c2fbaf1

View differences:

util/install.sh
45 45
    fi
46 46
fi
47 47
test -e /etc/fedora-release && DIST="Fedora"
48
if [ "$DIST" = "Fedora" ]; then
48
test -e /etc/redhat-release && DIST="RedHatEnterpriseServer"
49
if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then
49 50
    install='sudo yum -y install'
50 51
    remove='sudo yum -y erase'
51 52
    pkginst='sudo rpm -ivh'
......
66 67
KERNEL_NAME=`uname -r`
67 68
KERNEL_HEADERS=kernel-headers-${KERNEL_NAME}
68 69

  
69
if ! echo $DIST | egrep 'Ubuntu|Debian|Fedora'; then
70
    echo "Install.sh currently only supports Ubuntu, Debian and Fedora."
70
if ! echo $DIST | egrep 'Ubuntu|Debian|Fedora|RedHatEnterpriseServer'; then
71
    echo "Install.sh currently only supports Ubuntu, Debian, RedHat and Fedora."
71 72
    exit 1
72 73
fi
73 74

  
......
123 124
# Install Mininet deps
124 125
function mn_deps {
125 126
    echo "Installing Mininet dependencies"
126
    if [ "$DIST" = "Fedora" ]; then
127
    if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then
127 128
        $install gcc make socat psmisc xterm openssh-clients iperf \
128 129
            iproute telnet python-setuptools libcgroup-tools \
129 130
            ethtool help2man pyflakes pylint python-pep8
......
156 157
    echo "Installing OpenFlow reference implementation..."
157 158
    cd $BUILD_DIR
158 159
    $install autoconf automake libtool make gcc
159
    if [ "$DIST" = "Fedora" ]; then
160
    if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then
160 161
        $install git pkgconfig glibc-devel
161 162
    else
162 163
        $install git-core autotools-dev pkg-config libc6-dev
......
224 225
function install_wireshark {
225 226
    if ! which wireshark; then
226 227
        echo "Installing Wireshark"
227
        if [ "$DIST" = "Fedora" ]; then
228
        if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then
228 229
            $install wireshark wireshark-gnome
229 230
        else
230 231
            $install wireshark tshark
......
334 335
function ovs {
335 336
    echo "Installing Open vSwitch..."
336 337

  
337
    if [ "$DIST" == "Fedora" ]; then
338
    if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then
338 339
        $install openvswitch openvswitch-controller
339 340
        return
340 341
    fi
......
546 547
function cbench {
547 548
    echo "Installing cbench..."
548 549

  
549
    if [ "$DIST" = "Fedora" ]; then
550
    if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then
550 551
        $install net-snmp-devel libpcap-devel libconfig-devel
551 552
    else
552 553
        $install libsnmp-dev libpcap-dev libconfig-dev
......
616 617
    $install ntp
617 618

  
618 619
    # Install vconfig for VLAN example
619
    if [ "$DIST" = "Fedora" ]; then
620
    if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then
620 621
        $install vconfig
621 622
    else
622 623
        $install vlan

Also available in: Unified diff