Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Commit 8c363f7

Browse files
committed
fix wifi repeater
1 parent 0646d2a commit 8c363f7

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

app/src/main/java/net/xndroid/fqrouter/FqrouterManager.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ public void run() {
238238
int errorLen = 0;
239239
String cmd = "";
240240
PackageManager packageManager = AppModel.sContext.getPackageManager();
241+
String env_path = sXndroidFile + ":$PATH:" + sXndroidFile + "/fqrouter/wifi-tools";
241242

242243
if(AppModel.sIsRootMode){
243244
String uidList = "";
@@ -260,7 +261,7 @@ public void run() {
260261
uidList = uidList.trim();
261262

262263
cmd = "cd " + sXndroidFile + " \n"
263-
+ "export PATH=" + sXndroidFile + ":$PATH\n"
264+
+ "export PATH=" + env_path + "\n"
264265
+ "export PROXY_MODE=" + sProxyMode + "\n"
265266
+ "export PROXY_LIST='" + uidList + "'\n"
266267
// + "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/vendor/lib64:/vendor/lib:/system/lib64:/system/lib\n"
@@ -274,7 +275,7 @@ public void run() {
274275
+ "exit\n";
275276
}else {
276277
cmd = "cd " + sXndroidFile + " \n"
277-
+ "export PATH=" + sXndroidFile + ":$PATH\n"
278+
+ "export PATH=" + env_path + "\n"
278279
// + "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/vendor/lib64:/vendor/lib:/system/lib64:/system/lib\n"
279280
+ ((AppModel.sDebug || AppModel.sLastFail) ? "export DEBUG=TRUE\n" : "")
280281
+ (sOriginIPv6 != null ? "export NO_TEREDO=TRUE\n" : "")

fqrouter/wifi-tools-pie/netcfg

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

fqrouter/wifi-tools/netcfg

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

0 commit comments

Comments
 (0)