Site Survey: create capture directory (#28)

pull/32/head
Bradley D 2018-06-28 18:47:32 -06:00 committed by Sebastian Kinne
parent 4f5fcd536b
commit 03aeb6158c
3 changed files with 8 additions and 1 deletions

View File

@ -6,5 +6,5 @@
"tetra"
],
"title": "Site Survey",
"version": "1.3"
"version": "1.4"
}

View File

@ -55,6 +55,11 @@ if [ "$1" = "start" ]; then
echo ${BSSID} > ${LOCK}
# make sure the folder exists
if [ ! -d /pineapple/modules/SiteSurvey/capture ]; then
mkdir /pineapple/modules/SiteSurvey/capture
fi
airodump-ng -c ${CHANNEL} --bssid ${BSSID} -w /pineapple/modules/SiteSurvey/capture/capture_${MYTIME} ${MYMONITOR} &> /dev/null &
echo -e "Capture is running..." >> ${LOG}

View File

@ -23,6 +23,8 @@ if [ "$1" = "install" ]; then
uci set sitesurvey.module.installed=1
uci commit sitesurvey.module.installed
mkdir /pineapple/modules/SiteSurvey/capture
elif [ "$1" = "remove" ]; then
rm -rf /etc/config/sitesurvey
fi