Revision 136c9591 util/install.sh

View differences:

util/install.sh
208 208
}
209 209

  
210 210

  
211
function wireshark {
212
    echo "Installing Wireshark"
213
    if [ "$DIST" = "Fedora" ]; then
214
        $install wireshark wireshark-gnome
215
    else
216
        $install wireshark tshark
211
function install_wireshark {
212
    if ! which wireshark; then
213
        echo "Installing Wireshark"
214
        if [ "$DIST" = "Fedora" ]; then
215
            $install wireshark wireshark-gnome
216
        else
217
            $install wireshark tshark
218
        fi
217 219
    fi
218 220

  
219 221
    # Copy coloring rules: OF is white-on-blue:
222
    echo "Optionally installing wireshark color filters"
220 223
    mkdir -p $HOME/.wireshark
221 224
    cp -n $MININET_DIR/mininet/util/colorfilters $HOME/.wireshark
222 225

  
......
701 704
      v)    ovs;;
702 705
      V)    OVS_RELEASE=$OPTARG;
703 706
            ubuntuOvs;;
704
      w)    wireshark;;
707
      w)    install_wireshark;;
705 708
      x)    case $OF_VERSION in
706 709
            1.0) nox;;
707 710
            1.3) nox13;;

Also available in: Unified diff