rename project to runaway
This commit is contained in:
+8
-8
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user