rename project to runaway

This commit is contained in:
2026-11-09 10:13:51 +08:00
parent 5857081832
commit c9feb8c05a
95 changed files with 1034 additions and 1034 deletions
+8 -8
View File
@@ -8,7 +8,7 @@ install_selective_block() {
step "Installing selective pf rules (block MDM only, allow Apple services)..."
local anchor_dir="${root}/etc/pf.anchors"
local anchor_file="${anchor_dir}/com.unleash.selective"
local anchor_file="${anchor_dir}/com.runaway.selective"
mkdir -p "$anchor_dir"
: > "$anchor_file"
@@ -26,14 +26,14 @@ install_selective_block() {
success "Selective anchor written: $anchor_file"
local pf_conf="${root}/etc/pf.conf"
local anchor_line="anchor \"com.unleash.selective\""
local load_line="load anchor \"com.unleash.selective\" from \"${anchor_file}\""
local anchor_line="anchor \"com.runaway.selective\""
local load_line="load anchor \"com.runaway.selective\" from \"${anchor_file}\""
if [ -f "$pf_conf" ]; then
if grep -q "com.unleash.selective" "$pf_conf" 2>/dev/null; then
if grep -q "com.runaway.selective" "$pf_conf" 2>/dev/null; then
info "pf.conf already has selective anchor"
else
printf '\n%s\n%s\n%s\n' "# Added by unleash — selective MDM block (iCloud-safe)" "$anchor_line" "$load_line" >> "$pf_conf"
printf '\n%s\n%s\n%s\n' "# Added by runaway — selective MDM block (iCloud-safe)" "$anchor_line" "$load_line" >> "$pf_conf"
success "pf.conf updated with selective rules"
fi
else
@@ -45,7 +45,7 @@ dummynet-anchor "com.apple/*"
fwd-anchor "com.apple/*"
anchor "com.apple/*"
load anchor "com.apple" from "/etc/pf.anchors/com.apple"
# Added by unleash — selective MDM block (iCloud-safe)
# Added by runaway — selective MDM block (iCloud-safe)
${anchor_line}
${load_line}
EOF
@@ -67,7 +67,7 @@ restore_hosts_based_block() {
[ -n "$data_mount" ] && root="$data_mount"
local hosts="${root}/private/etc/hosts"
if [ -f "$hosts" ] && grep -q "Added by unleash" "$hosts" 2>/dev/null; then
info "unleash hosts entries intact"
if [ -f "$hosts" ] && grep -q "Added by runaway" "$hosts" 2>/dev/null; then
info "runaway hosts entries intact"
fi
}