Support libwireshark[0,1] for 11.04 and 11.10

This commit is contained in:
Bob Lantz
2012-04-10 21:34:07 -07:00
parent 0919b7ca67
commit edd1d0f3a4
+3 -1
View File
@@ -174,7 +174,9 @@ function wireshark {
cd of-dissector/src
export WIRESHARK=/usr/include/wireshark
scons
WSPLUGDIR=/usr/lib/wireshark/libwireshark1/plugins/
# libwireshark0/ on 11.04; libwireshark1/ on later
WSDIR=`ls -d /usr/lib/wireshark/libwireshark* | head -1`
WSPLUGDIR=$WSDIR/plugins/
sudo cp openflow.so $WSPLUGDIR
echo "Copied openflow plugin to $WSPLUGDIR"
else