Skip to content

Commit 4e978f2

Browse files
committed
hotspot - testing cont.
1 parent 37ffb80 commit 4e978f2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/hotspot.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ HOT_SPOT_FILE=/boot/omnipy-hotspot
7171
WLAN_INTERFACE=wlan0
7272
iw dev ${WLAN_INTERFACE} set power_save off
7373

74+
SSID_REGISTERED=$(awk '/ssid="/{ print $0 }' /etc/wpa_supplicant/wpa_supplicant.conf | awk -F'ssid=' '{ print $2 }' ORS=',' | sed 's/\"/''/g' | sed 's/,$//')
75+
7476
if [[ -z "${SSID_REGISTERED}" ]]; then
7577
echo "No SSIDs registered"
7678
if [[ -f ${HOT_SPOT_FILE} ]]; then

scripts/omnipy-hotspot.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Unit]
22
Description=Omnipy WiFi Hotspot service
3-
After=multi-user.target
3+
After=network.target
44

55
[Service]
66
ExecStart=/bin/bash /home/pi/omnipy/scripts/hotspot.sh

0 commit comments

Comments
 (0)