File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ disable=SC2004
2020
2121# redundant sed invocation
2222disable =SC2001
23+
24+ # referencing unassigned variable
25+ # we need to reference magisk pre-set variables a lot
26+ disable =SC2154
Original file line number Diff line number Diff line change 1+ #! /system/bin/sh
2+
3+ exec 2>&1
4+
5+ [ " $BOOTMODE " != " true" ] && abort " Please install this module within the Magisk app."
6+
7+ # path to already installed module
8+ INSTALLEDMODPATH=/data/adb/modules/MagicalProtection
9+
10+ [ ! -d " $INSTALLEDMODPATH " ] && return 0
11+ [ ! -w /system/etc/hosts ] && return 0
12+
13+ ui_print " - Performing in-place update"
14+
15+ cp -v -r -f " $MODPATH " /* " $INSTALLEDMODPATH "
16+ cp -v -f " $MODPATH " /system/etc/hosts /system/etc/hosts
17+
18+ rm -v -r " $MODPATH "
19+
20+ exit 0
You can’t perform that action at this time.
0 commit comments