fixed default install script for tcpdump (#39)

This commit is contained in:
theblindrat 2018-08-23 18:07:59 -04:00 committed by Sebastian Kinne
parent f13707821e
commit 13b3c40d76
2 changed files with 12 additions and 3 deletions

View File

@ -6,5 +6,5 @@
"tetra"
],
"title": "tcpdump",
"version": "1.5"
}
"version": "1.6"
}

View File

@ -5,7 +5,16 @@ 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=`cat /tmp/tcpdump.run`
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
if [ "$1" = "start" ]; then
eval ${MYCMD}