aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/macosx/Scripts/cli-postinstall.sh
blob: 1ecc05a39069520fbe7180ea9eb978b1e675df0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

CLI_PATH="$2"
BINARIES="
    capinfos
    captype
    dftest
    dumpcap
    editcap
    mergecap
    mmdbresolve
    randpkt
    rawshark
    reordercap
    text2pcap
    tshark
"

cd "$CLI_PATH"

chmod 755 wireshark
chown root:wheel wireshark

for BIN in $BINARIES ; do
    rm -f ./"$BIN"
    ln -sn ./wireshark "$BIN"
done