aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/macosx/Scripts/cli-postinstall.sh
blob: ce85c0376874b19f48fd7bf461569b2f512f9d14 (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
#!/bin/sh

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

cd "$CLI_PATH"

rm -f ./wireshark
mv utility-launcher wireshark
chmod 755 wireshark

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