This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#check if the script is already running | |
PID=$$ | |
SCRIPT="$(basename $0)" | |
TMPDIR="/tmp" | |
MONITORPIDFILE="$TMPDIR/$SCRIPT-$$.nftmonitorpid" | |
MONITORFIFO="$TMPDIR/$SCRIPT-$$.nftmonitorfifo" | |
mkfifo "$MONITORFIFO" | |
# Extract all ipset names from MWAN3 |