Maintenance for a few modules (#42)

This commit is contained in:
WM
2018-08-27 02:32:32 +02:00
committed by Sebastian Kinne
parent 13b3c40d76
commit a5d7d19cd5
161 changed files with 16954 additions and 10056 deletions

View File

@@ -5,21 +5,12 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
MYTIME=`date +%s`
MYCMD="tcpdump `cat /tmp/tcpdump.run`"
DUMPPATH='/pineapple/modules/tcpdump/dump/'
echo "Starting if"
if [ ! -d "$DUMPPATH" ]; then
# Control will enter here if $DUMPPATH doesn't exist.
# Recursively make the path
mkdir -p "$DUMPPATH"
fi
MYCMD=`cat /tmp/tcpdump.run`
if [ "$1" = "start" ]; then
eval ${MYCMD}
rm -rf /tmp/tcpdump.run
elif [ "$1" = "stop" ]; then
killall tcpdump
killall -9 tcpdump
rm -rf /tmp/tcpdump.run
fi
fi