nano-tetra-modules/wps/scripts/wps.sh

18 lines
317 B
Bash
Executable File

#!/bin/sh
#2015 - Whistle Master
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/wps.run`
if [ "$1" = "start" ]; then
eval ${MYCMD}
elif [ "$1" = "stop" ]; then
killall -9 reaver
killall -9 bully
rm -rf /tmp/wps.run
fi