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

@@ -6,19 +6,13 @@ export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
MYTIME=`date +%s`
MYCMD=`cat /tmp/wps.run`
MODULEDIR=/pineapple/modules/wps
LOGDIR=$MODULEDIR/log
# ensure log directory is created
if [ ! -d $LOGDIR ]; then
mkdir $LOGDIR
fi
if [ "$1" = "start" ]; then
eval ${MYCMD}
rm -rf /tmp/wps.run
elif [ "$1" = "stop" ]; then
killall -9 reaver
killall -9 reaver
killall -9 bully
rm -rf /tmp/wps.run
fi
fi