aboutsummaryrefslogtreecommitdiffstats
path: root/tools/switch_wireshark_fedora.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/switch_wireshark_fedora.sh')
-rwxr-xr-xtools/switch_wireshark_fedora.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/switch_wireshark_fedora.sh b/tools/switch_wireshark_fedora.sh
new file mode 100755
index 0000000..54bb799
--- /dev/null
+++ b/tools/switch_wireshark_fedora.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+wirsrc="$HOME/src/wireshark/"
+wirpkg="wireshark wireshark-devel wireshark-gnome"
+
+if [ $# -lt 1 ]; then
+ echo "usage: `basename $0` svn|pkg"
+ exit 1
+fi
+
+set -x
+
+if [ $1 == "svn" ]; then
+ sudo yum remove $wirpkg
+ cd $wirsrc
+ make -j 4
+ sudo make install
+elif [ $1 == "pkg" ]; then
+ cd $wirsrc
+ sudo make uninstall
+ sudo yum install $wirpkg
+fi