Fixed a bug with hostapd.conf's path.

This commit is contained in:
Matias Barcenas 2017-08-09 20:16:16 -05:00
parent 9bcaff15bc
commit 03c1921f95
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ VIAPAddress=$VIGWAddress
VIAPRouteDelay=5
APServiceConfPath="$DUMP_PATH/APService.conf"
APServiceConfPath="$FLUXIONWorkspacePath/APService.conf"
function ap_stop() {
killall hostapd &> $FLUXIONOutputDevice
@ -50,7 +50,7 @@ interface=$VIAP
driver=nl80211
ssid=$APTargetSSID
channel=$APTargetChannel\
" > $APServiceConfPath
" > "$APServiceConfPath"
# Spoof virtual interface MAC address.
ifconfig $VIAP down
@ -64,7 +64,7 @@ channel=$APTargetChannel\
}
function ap_start() {
xterm $HOLD $BOTTOMRIGHT -bg "#000000" -fg "#FFFFFF" -title "FLUXION AP Service [hostapd]" -e hostapd $APServiceConfPath &
xterm $HOLD $BOTTOMRIGHT -bg "#000000" -fg "#FFFFFF" -title "FLUXION AP Service [hostapd]" -e hostapd "$APServiceConfPath" &
sleep $VIAPRouteDelay; ap_route
}