change PATH
This commit is contained in:
parent
3e7fcd029a
commit
41f66baf5e
|
@ -1,16 +1,16 @@
|
|||
#!/system/bin/sh
|
||||
# Please don't hardcode /magisk/modname/... ; instead, please use $MODDIR/...
|
||||
# This will make your scripts compatible even if Magisk change its mount point in the future
|
||||
# Do NOT assume where your module will be located.
|
||||
# ALWAYS use $MODDIR if you need to know where this script
|
||||
# and module is placed.
|
||||
# This will make sure your module will still work
|
||||
# if Magisk change its mount point in the future
|
||||
MODDIR=${0%/*}
|
||||
|
||||
# This script will be executed in late_start service mode
|
||||
# More info in the main Magisk thread
|
||||
|
||||
for i in 1 2 3 4 5 6 7 8 9 10 11 12; do
|
||||
ping -c 1 download.dnscrypt.info
|
||||
if [[ $? == 0 ]];
|
||||
then
|
||||
$MODPATH/system/bin/dnscrypt-proxy -config $MODPATH/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml &
|
||||
$MODDIR/system/bin/dnscrypt-proxy -config $MODDIR/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml &
|
||||
sleep 15
|
||||
iptables -t nat -A OUTPUT -p tcp ! -d 9.9.9.9 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
|
||||
iptables -t nat -A OUTPUT -p udp ! -d 9.9.9.9 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
|
||||
|
|
Loading…
Reference in New Issue