mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Maintenance for a few modules (#42)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user