mirror of
https://github.com/mroi/apple-internals.git
synced 2026-02-12 17:12:44 +00:00
flake: run wrapped snapUtil with original name
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
cat > $out/bin/snapUtil <<- EOF
|
cat > $out/bin/snapUtil <<- EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if csrutil status | grep -Fq disabled && sysctl kern.bootargs | grep -Fq amfi_get_out_of_my_way ; then
|
if csrutil status | grep -Fq disabled && sysctl kern.bootargs | grep -Fq amfi_get_out_of_my_way ; then
|
||||||
exec $out/bin/.snapUtil-wrapped "\$@"
|
exec -a snapUtil $out/bin/.snapUtil-wrapped "\$@"
|
||||||
else
|
else
|
||||||
echo 'snapUtil requires SIP and AMFI to be disabled:'
|
echo 'snapUtil requires SIP and AMFI to be disabled:'
|
||||||
echo '• boot recovery system'
|
echo '• boot recovery system'
|
||||||
|
|||||||
Reference in New Issue
Block a user