Install coloring rules regardless of plugin. Also don't clobber.
This commit is contained in:
+5
-5
@@ -216,8 +216,12 @@ function wireshark {
|
|||||||
$install wireshark tshark
|
$install wireshark tshark
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Copy coloring rules: OF is white-on-blue:
|
||||||
|
mkdir -p $HOME/.wireshark
|
||||||
|
cp -n $MININET_DIR/mininet/util/colorfilters $HOME/.wireshark
|
||||||
|
|
||||||
echo "Checking Wireshark version"
|
echo "Checking Wireshark version"
|
||||||
WSVER=`wireshark -v | egrep -o '[0-9\.]+' | head -1`
|
WSVER=`wireshark -v | egrep -o -m 1 '[0-9\.]+' | head -1`
|
||||||
if version_ge $WSVER 1.12; then
|
if version_ge $WSVER 1.12; then
|
||||||
echo "Wireshark version $WSVER >= 1.12 - returning"
|
echo "Wireshark version $WSVER >= 1.12 - returning"
|
||||||
return
|
return
|
||||||
@@ -237,10 +241,6 @@ function wireshark {
|
|||||||
sudo cp $PLUGIN $WSPLUGDIR
|
sudo cp $PLUGIN $WSPLUGDIR
|
||||||
echo "Copied openflow plugin $PLUGIN to $WSPLUGDIR"
|
echo "Copied openflow plugin $PLUGIN to $WSPLUGDIR"
|
||||||
|
|
||||||
# Copy coloring rules: OF is white-on-blue:
|
|
||||||
mkdir -p $HOME/.wireshark
|
|
||||||
cp $MININET_DIR/mininet/util/colorfilters $HOME/.wireshark
|
|
||||||
|
|
||||||
cd $BUILD_DIR
|
cd $BUILD_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user