Make module mirror read only

This commit is contained in:
LoveSy
2023-04-02 17:52:07 +08:00
committed by John Wu
parent aa785b5845
commit 15cab86152
3 changed files with 10 additions and 3 deletions

View File

@@ -117,8 +117,8 @@ EOF
add_hosts_module() {
# Do not touch existing hosts module
[ -d $MAGISKTMP/modules/hosts ] && return
cd $MAGISKTMP/modules
[ -d $NVBASE/modules/hosts ] && return
cd $NVBASE/modules
mkdir -p hosts/system/etc
cat << EOF > hosts/module.prop
id=hosts