- doctor: pre-flight diagnostic (sudo, recovery, disk, libs, third-party FW) - update: self-update from GitHub latest release - uninstall: remove all Unleash traces (daemons, pf, hosts, backups, config) - config: persistent settings file (~/.unleash.conf) with show/set/unset - report: full markdown system status report - MA detect: scan for Migration Assistant MDM artifacts per user - spinner: visual progress indicator for long operations - reinstall: uninstall + persist + whitelist + monitor-install - Third-party firewall detection (Little Snitch, LuLu, Radio Silence, Vallum) - Load config on startup (WEBHOOK, LOG_LEVEL, LOG_FILE) - Bump 1.3.0 -> 1.4.0
23 lines
718 B
Bash
Executable File
23 lines
718 B
Bash
Executable File
#!/bin/bash
|
|
OUT="unleash-standalone.sh"
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
VERSION="$(grep '^VERSION=' "$SCRIPT_DIR/unleash" | head -1 | cut -d'"' -f2)"
|
|
[ -z "$VERSION" ] && VERSION="1.0.0"
|
|
|
|
cat > "$OUT" << HEADER
|
|
#!/bin/bash
|
|
set -euo pipefail
|
|
VERSION="$VERSION"
|
|
HEADER
|
|
|
|
for lib in colors config detect validate dscl suppress backup status heal firewall harden whitelist check monitor history doctor selfupdate uninstall report ma_detect; do
|
|
tail -n +1 "$SCRIPT_DIR/lib/$lib.sh" >> "$OUT"
|
|
echo "" >> "$OUT"
|
|
done
|
|
|
|
sed -e '1,/_lib in /d' -e '/^done$/,$!d' -e '/^done$/d' "$SCRIPT_DIR/unleash" >> "$OUT"
|
|
|
|
chmod +x "$OUT"
|
|
echo "Created: $OUT (v$VERSION, $(wc -c < "$OUT") bytes, $(wc -l < "$OUT") lines)"
|