1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add luci-app-packet-capture

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-12-09 14:53:48 +01:00
parent 19dde3a38a
commit 93694b5983
9 changed files with 489 additions and 2 deletions

View file

@ -0,0 +1,9 @@
#!/bin/sh
pid=$(cat /var/run/packet_capture.pid)
if [ -n "$pid" ] && grep -sq packet_capture "/proc/$pid/cmdline"; then
ppid=$(pgrep -P $pid)
kill -TERM $ppid
fi
exit 0