From 258e89c964a2888716c65d79029767794e6f5c49 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Fri, 5 Nov 2021 20:21:11 -0300 Subject: [PATCH] Fix script typo for Sony init.real support - though may still be broken on magiskinit side, see #4885 --- scripts/boot_patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index e2370a5e7..6084b7df1 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -137,7 +137,7 @@ esac # Work around custom legacy Sony /init -> /(s)bin/init_sony : /init.real setup INIT=init -if [ $((status & 0x4)) -ne 0 ]; then +if [ $((STATUS & 4)) -ne 0 ]; then INIT=init.real fi