-
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial comitup hotspot implementation * fix tryUntil helper * check URL *below* serverRoot because ANY hostname resolves to router if comitup running Signed-off-by: Markus Storm <markus.storm@gmx.net>
- Loading branch information
Showing
14 changed files
with
201 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Comitup configuration | ||
# | ||
|
||
|
||
# ap_name | ||
# | ||
# This defines the name used for the AP hotspot, and for the ZeroConf | ||
# host name. The "<nnn>" string, if present, will be replaced with an | ||
# instance-unique, persistent number. There may be up to four "n's" in | ||
# the string. | ||
# | ||
ap_name: openHABian-<n> | ||
|
||
# web_service | ||
# | ||
# The name of a systemd service to be disabled when comitup is managing a | ||
# hotspot, and enabled when there is a normal wifi connection. | ||
# | ||
# web_service: httpd.service | ||
|
||
# enable_appliance_mode | ||
# | ||
# If enabled (true), and if two wifi adapters are available, comitup will | ||
# maintain the comitup-<nnn> hotspot on the first, and make other AP | ||
# connections on the second. IP forwarding and NAT are enabled, so that | ||
# hosts on the comitup hotspot will be able to access external networks. | ||
# | ||
# enable_appliance_mode: true | ||
|
||
# external_callback | ||
# | ||
# An external script that is called on comitup state changes. It will | ||
# include a single argument, either 'HOTSPOT', 'CONNECTING', or | ||
# 'CONNECTED'. | ||
# | ||
# The script must be executable. It will be run with the permissions of the | ||
# owning user. | ||
# | ||
# external_callback: /usr/local/bin/comitup-callback | ||
|
||
# primary_wifi_device | ||
# | ||
# By default, the first wifi device returned by NetworkManager is used as | ||
# the primary wifi device. This allows you to override this choice. | ||
# | ||
# primary_wifi_device: wlan0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# interfaces(5) file used by ifup(8) and ifdown(8) | ||
|
||
# Please note that this file is written to be used with dhcpcd | ||
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' | ||
|
||
# Include files from /etc/network/interfaces.d: | ||
source-directory /etc/network/interfaces.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters