File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88## Contents:
99- Base extensions
10- hosts: 3.7.13 (0505 )
11- module: 16.7 (0907 )
12- code: 167
10+ hosts: 3.8.5 (0802 )
11+ module: 16.8 (0805 )
12+ code: 168
1313
1414## Credits:
1515- [ @topjohnwu ] ( https://github.com/topjohnwu ) / Magisk - Magisk Module Template
@@ -18,5 +18,5 @@ code: 167
1818
1919## Extras:
2020- Donation: [ PayPal] ( https://paypal.me/gloeyisk ) - [ LiberaPay] ( https://liberapay.com/gloeyisk )
21- - Mirror Links: [ Telegram] ( https://t.me/gldppc ) - [ Archive ] ( https://tinyurl.com/dvbnjpub )
21+ - Mirror Links: [ Telegram] ( https://t.me/gldppc ) - [ Index ] ( https://kutt.it/Wt3rr4 )
2222- Source Code: [ GitHub] ( https://github.com/gloeyisk/SystemlessHosts )
Original file line number Diff line number Diff line change 77#
88
99# Checking for installation environment
10- sleep 1
1110if [ $BOOTMODE = true ]; then
1211 ROOT=$( find ` magisk --path` -type d -name " mirror" | head -n 1)
13- ui_print " - Root path: $ROOT "
12+ ui_print " - Root path: $ROOT "
1413else
1514 ROOT=" "
1615fi
1716
1817# Search hosts file location
19- sleep 1
2018ui_print " - Searching hosts file location"
2119 if [ -d /system/etc ]; then
2220 PATH=/system/etc
23- sleep 1
24- ui_print " File found in: $PATH "
21+ ui_print " File found in: $PATH "
2522 elif [ -d /system/product/etc ]; then
2623 PATH=/system/product/etc
27- sleep 1
28- ui_print " File found in: $PATH "
24+ ui_print " File found in: $PATH "
2925 break
3026 else
31- sleep 1
32- ui_print " File not found"
33- sleep 1
27+ ui_print " File not found"
3428 abort " Aborting"
3529 fi
3630
3731# Patch default hosts file
38- sleep 1
39- ui_print " - Patching hosts file"
32+ ui_print " - Patching hosts file"
4033 mkdir -p $MODPATH$PATH
4134 mv -f $MODPATH /hosts $MODPATH$PATH
4235
4336# Clean up
44- sleep 1
45- ui_print " - Cleaning up"
37+ ui_print " - Cleaning up"
4638 rm -rf $MODPATH /hosts
4739 rm -rf $MODPATH /LICENSE
4840
49- sleep 1
5041# Executing...
5142# Done
You can’t perform that action at this time.
0 commit comments