This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/system/bin/sh | |
| # start after emulated storage is setup | |
| while [ ! -d "/storage/emulated/0/Android" ]; do | |
| sleep 3 | |
| done | |
| gethostip() { | |
| ip=$(ip route list match 0 table all scope global | cut -F3) | |
| if [ -z "$ip" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| HOST_IP=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }') | |
| PROXY_PORT="7890" | |
| PROXY_HTTP="http://${HOST_IP}:${PROXY_PORT}" | |
| export {http,https,ftp}_proxy="$PROXY_HTTP" | |
| export {HTTP,HTTPS,FTP}_PROXY="$PROXY_HTTP" | |
| git config --global http.proxy "$PROXY_HTTP" | |
| git config --global https.proxy "$PROXY_HTTP" |
NewerOlder