This repository was archived by the owner on Apr 12, 2022. It is now read-only.
File tree 3 files changed +41
-2
lines changed
app/src/main/java/net/xndroid/fqrouter
3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ public void run() {
238
238
int errorLen = 0 ;
239
239
String cmd = "" ;
240
240
PackageManager packageManager = AppModel .sContext .getPackageManager ();
241
+ String env_path = sXndroidFile + ":$PATH:" + sXndroidFile + "/fqrouter/wifi-tools" ;
241
242
242
243
if (AppModel .sIsRootMode ){
243
244
String uidList = "" ;
@@ -260,7 +261,7 @@ public void run() {
260
261
uidList = uidList .trim ();
261
262
262
263
cmd = "cd " + sXndroidFile + " \n "
263
- + "export PATH=" + sXndroidFile + ":$PATH \n "
264
+ + "export PATH=" + env_path + "\n "
264
265
+ "export PROXY_MODE=" + sProxyMode + "\n "
265
266
+ "export PROXY_LIST='" + uidList + "'\n "
266
267
// + "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/vendor/lib64:/vendor/lib:/system/lib64:/system/lib\n"
@@ -274,7 +275,7 @@ public void run() {
274
275
+ "exit\n " ;
275
276
}else {
276
277
cmd = "cd " + sXndroidFile + " \n "
277
- + "export PATH=" + sXndroidFile + ":$PATH \n "
278
+ + "export PATH=" + env_path + "\n "
278
279
// + "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/vendor/lib64:/vendor/lib:/system/lib64:/system/lib\n"
279
280
+ ((AppModel .sDebug || AppModel .sLastFail ) ? "export DEBUG=TRUE\n " : "" )
280
281
+ (sOriginIPv6 != null ? "export NO_TEREDO=TRUE\n " : "" )
Original file line number Diff line number Diff line change
1
+ #! /system/bin/sh
2
+
3
+ [ $# != 3 ] && {
4
+ ifconfig $@
5
+ exit $?
6
+ }
7
+
8
+ [ $2 == ' up' ] && {
9
+ ifup $1
10
+ exit $?
11
+ }
12
+
13
+ [ $2 == ' down' ] && {
14
+ ifdown $1
15
+ exit $?
16
+ }
17
+
18
+ echo " unsupported command: $@ "
19
+ exit 1
Original file line number Diff line number Diff line change
1
+ #! /system/bin/sh
2
+
3
+ [ $# != 3 ] && {
4
+ ifconfig $@
5
+ exit $?
6
+ }
7
+
8
+ [ $2 == ' up' ] && {
9
+ ifup $1
10
+ exit $?
11
+ }
12
+
13
+ [ $2 == ' down' ] && {
14
+ ifdown $1
15
+ exit $?
16
+ }
17
+
18
+ echo " unsupported command: $@ "
19
+ exit 1
You can’t perform that action at this time.
0 commit comments