Find wireshark dir using find (fix for 13.10)

This commit is contained in:
Bob Lantz authored and Brian O'Connor committed 2013-09-11 12:00:17 -07:00
1 parent 9de7bd666d
commit 3027856c7b
1 file changed
+1 -1
+1 -1
View File
@@ -255,7 +255,7 @@ function wireshark {
export WIRESHARK=/usr/include/wireshark
scons
# libwireshark0/ on 11.04; libwireshark1/ on later
WSDIR=`ls -d /usr/lib/wireshark/libwireshark* | head -1`
WSDIR=`find /usr/lib -type d -name 'libwireshark*' | head -1`
WSPLUGDIR=$WSDIR/plugins/
sudo cp openflow.so $WSPLUGDIR
echo "Copied openflow plugin to $WSPLUGDIR"