Skip to content

Commit

Permalink
add --force-hotspot option for easier testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 3, 2023
1 parent 7417a09 commit 21acec8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions misc/sampleconfigs/autohotspot.sh.stretch-default2-Hotspot.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
#Other setup required find out more at
#http://www.raspberryconnect.com

if [ $# -gt 0 ] ; then
if [ $# -eq 1 ] && [ "$1" == "--force-hotspot" ]; then
FORCE_HOTSPOT=1
else
echo "ignoring unrecognized parameter: $*"
fi
fi

NO_SSID='NoSSid'
ssidChk="$NO_SSID"

Expand Down Expand Up @@ -108,6 +116,8 @@ CheckDevice()

FindSSID()
{
if [ -n "$FORCE_HOTSPOT" ]; then return; fi

#Check to see what SSID's and MAC addresses are in range
local i=0; j=0
while [ $i -eq 0 ]
Expand Down

0 comments on commit 21acec8

Please sign in to comment.