Skip to content

Commit

Permalink
wlanap: presence of wlan credentials should not block ap start.
Browse files Browse the repository at this point in the history
  • Loading branch information
themactep committed Nov 9, 2024
1 parent 36a84f4 commit 2c711cd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions package/thingino-ap/files/S42wifiap
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@ case "$1" in
(iface_exists "eth0" || iface_exists "usb0") && quit "Wired interface found"
iface_exists "$net_dev" || quit "Wireless port not found"
# quit if credentials are set, AP conflicts with normal wifi operation
ssid="$(get wlanssid)"
pass="$(get wlanpass)"
wlanap="$(get wlanap_enabled)"

[ -n "$ssid" ] && [ -n "$pass" ] && quit "WLAN already configured"

[ "$wlanap" != "true" ] && quit "WLAN AP disabled"
[ "true" = "$(get wlanap_enabled)" ] || quit "WLAN AP disabled"

touch /var/run/udhcpd_ap.leases
cp /etc/resolv-ap.conf /tmp/resolv.conf
Expand Down

0 comments on commit 2c711cd

Please sign in to comment.