diff --git a/util/install.sh b/util/install.sh index 424d0ac..133d8f4 100755 --- a/util/install.sh +++ b/util/install.sh @@ -221,7 +221,11 @@ function wireshark { sudo apt-get install -y libwiretap-dev libwireshark-dev cd $BUILD_DIR hg clone https://bitbucket.org/barnstorm/of-dissector - cd of-dissector/src + cd of-dissector + if [[ -n "$WS_DISSECTOR_REV" ]]; then + hg checkout ${WS_DISSECTOR_REV} + fi + cd src export WIRESHARK=/usr/include/wireshark scons # libwireshark0/ on 11.04; libwireshark1/ on later