22 lines
565 B
Bash
Executable File
22 lines
565 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
CHMOD_BPF="/Library/LaunchDaemons/com.loafle.overflow.scanner.ChmodBPF.plist"
|
|
BPF_GROUP="access_bpf"
|
|
BPF_GROUP_NAME="BPF device access ACL"
|
|
|
|
dscl . -read /Groups/"$BPF_GROUP" > /dev/null 2>&1 || \
|
|
dseditgroup -q -o create "$BPF_GROUP"
|
|
dseditgroup -q -o edit -a "$USER" -t user "$BPF_GROUP"
|
|
|
|
cp "/Library/Application Support/overFlow-NetworkScanner/ChmodBPF/com.loafle.overflow.scanner.ChmodBPF.plist" \
|
|
"$CHMOD_BPF"
|
|
chmod 755 "$CHMOD_BPF"
|
|
chown root:wheel "$CHMOD_BPF"
|
|
|
|
rm -rf /Library/StartupItems/ChmodBPF
|
|
|
|
launchctl load "$CHMOD_BPF"
|
|
|
|
exit 0
|