This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
mwan3: mwan3rtmon sleep time configurable
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
lilik-openwrt-22.03
Chen Minqiang
6 years ago
parent
46ed09408e
commit
7817aced2b
2 changed files
with
7 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
net/mwan3/files/etc/config/mwan3
+6
-1
net/mwan3/files/usr/sbin/mwan3rtmon
+ 1
- 0
net/mwan3/files/etc/config/mwan3
View File
@ -2,6 +2,7 @@
config globals 'globals'
option mmx_mask '0x3F00'
option local_source 'none'
option rtmon_interval '5'
config interface 'wan'
option enabled '1'
+ 6
- 1
net/mwan3/files/usr/sbin/mwan3rtmon
View File
@ -15,12 +15,17 @@ rtchange() {
}
main() {
local rtmon_interval
trap clean_up TERM
trap rtchange USR1
config_load mwan3
config_get rtmon_interval globals rtmon_interval '5'
sleep 3
while mwan3_rtmon_ipv4 || mwan3_rtmon_ipv6; do
sleep 5
[ "$rtmon_interval" = "0" ] && break
sleep $rtmon_interval
done
}
Write
Preview
Loading…
Cancel
Save