Skip to content

Commit 2123960

Browse files
mwan3: run user scripts in backgorund (#992)
/etc/mwan3.user should finish in a timely manner. (https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3#alertsnotifications) As of today, the only script is send-mwan-alert which can take 3 minutes. #1014
1 parent cfa43f1 commit 2123960

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# setup mwan3 custom scripts
2-
grep -q '/usr/libexec/ns-plug/mwan-hooks' /etc/mwan3.user || echo '/usr/libexec/ns-plug/mwan-hooks' >> /etc/mwan3.user
2+
grep -q '/usr/libexec/ns-plug/mwan-hooks &' /etc/mwan3.user || echo '/usr/libexec/ns-plug/mwan-hooks &' >> /etc/mwan3.user
3+
sed -i 's#^/usr/libexec/ns-plug/mwan-hooks$#/usr/libexec/ns-plug/mwan-hooks \&#' /etc/mwan3.user

0 commit comments

Comments
 (0)