luci-app-cpufreq: increase boot order

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2021-05-10 02:57:49 +08:00
parent bebd21cff9
commit ec74f5f185
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 3 additions and 9 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
START=50
START=15
NAME="cpufreq"

View File

@ -1,5 +1,3 @@
diff --git a/src/jconf.c b/src/jconf.c
index 710f70d..1613e20 100644
--- a/src/jconf.c
+++ b/src/jconf.c
@@ -259,6 +259,19 @@ read_jconf(const char *file)
@ -22,19 +20,15 @@ index 710f70d..1613e20 100644
} else {
match = 0;
}
diff --git a/src/redir.c b/src/redir.c
index feafd5e..64521a1 100644
--- a/src/redir.c
+++ b/src/redir.c
@@ -1252,7 +1252,10 @@ main(int argc, char **argv)
@@ -1252,6 +1252,9 @@ main(int argc, char **argv)
if (user == NULL) {
user = conf->user;
}
- if (mtu == 0) {
+ if (mode == TCP_ONLY) {
+ mode = conf->mode;
+ }
+ if (mtu == 0) {
if (mtu == 0) {
mtu = conf->mtu;
}
if (mptcp == 0) {