Skip to content

Commit b1e2709

Browse files
mwan3: run user scripts in backgorund
/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.
1 parent ee52d04 commit b1e2709

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)