]>
Commit | Line | Data |
---|---|---|
b705e8b8 | 1 | #!/bin/sh |
9a30c2f5 PG |
2 | ID=`which id` |
3 | echo $ID | |
4 | IDN=`$ID -u` | |
5 | ||
6 | if [ $IDN -ne 0 ] ; then | |
028313c0 | 7 | echo "Wireshark needs administrator capabilities" |
36eb5b1e | 8 | echo "Give root password (you have to be in wheel group):" |
028313c0 | 9 | exec su -c wireshark |
9a30c2f5 PG |
10 | exit 1 |
11 | else | |
028313c0 | 12 | wireshark |
9a30c2f5 | 13 | fi |