projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec5542a
)
net/mwan3: if initial_state is offline set status to unknown
author
Florian Eckert
<fe@dev.tdt.de>
Wed, 30 Aug 2017 13:26:29 +0000
(15:26 +0200)
committer
Florian Eckert
<fe@dev.tdt.de>
Fri, 1 Sep 2017 08:59:54 +0000
(10:59 +0200)
To show that the status of the interface is neither offline nor online
set the status to unknown.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/usr/sbin/mwan3track
patch
|
blob
|
history
diff --git
a/net/mwan3/files/usr/sbin/mwan3track
b/net/mwan3/files/usr/sbin/mwan3track
index 0e1c4f2b86d657638addf64432bf64f10e6ec515..e94ada815753ceccf271b081e98a085885cc3629 100755
(executable)
--- a/
net/mwan3/files/usr/sbin/mwan3track
+++ b/
net/mwan3/files/usr/sbin/mwan3track
@@
-81,8
+81,8
@@
main() {
local sleep_time=0
local turn=0
- if [ "$STATUS" = "
offline
" ]; then
- echo "
offline
" > /var/run/mwan3track/$1/STATUS
+ if [ "$STATUS" = "
unknown
" ]; then
+ echo "
unknown
" > /var/run/mwan3track/$1/STATUS
score=0
else
echo "online" > /var/run/mwan3track/$1/STATUS