Site Survey: create capture directory (#28)
parent
4f5fcd536b
commit
03aeb6158c
|
@ -6,5 +6,5 @@
|
|||
"tetra"
|
||||
],
|
||||
"title": "Site Survey",
|
||||
"version": "1.3"
|
||||
"version": "1.4"
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue