From edd1d0f3a4e687dc4ee2fcae6b2af10aafb5f4de Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 10 Apr 2012 21:34:07 -0700 Subject: [PATCH] Support libwireshark[0,1] for 11.04 and 11.10 --- util/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/install.sh b/util/install.sh index 6bdae39..26f02a9 100755 --- a/util/install.sh +++ b/util/install.sh @@ -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