#!/bin/bash
echo We are about to execute this script:
echo ======= /usr/local/bin/wireshark_update =======
cat          /usr/local/bin/wireshark_update
echo ======= /usr/local/bin/wireshark_update =======
echo -n enter yes to proceed
read auth
if [[ "$auth" == "yes" ]] then
	cd /usr/local/src
	mkdir wireshark
	cd wireshark
	konqueror http://www.wireshark.org/download.html
	sudo apt-get purge wireshark*
	sudo apt-get install $(set `dpkg-checkbuilddeps 2>&1`; shift 4; echo $*)
	./configure && make && sudo make install
	echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/wireshark.conf; sudo ldconfig
	sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/local/bin/dumpcap
fi


syntax highlighted by Code2HTML, v. 0.9.1