table of contents
NAME¶comitup - Manage wifi connections on headless, unconnected systems
DESCRIPTION¶The comitup service provides a means to establish a connection between a computer and a wifi access point, in the case where wifi is the only means available to access the computer.
On startup, the service will attempt to connect to wifi using established networkmanager(8) connections. If this is not successful, comitup will establish a wifi hotspot with the name comitup-<nnn>, where <nnn> is a persistent number.
While the hotspot is active, a comitup-web(8) service is available to manage connecting to an access point. A captive portal environment is established to aid in discovery of the web service.
If two wifi interfaces are available, the hotspot will remain active on the first interface, and the internet connection will be made on the second. Otherwise, the hotspot will be replaced with the internet connection.
In all states, avahi-daemon(8) is used to publish the mdns host name comitup-<nnn>.local, making the web service accessible as e.g. http://comitup-123.local, for systems supporting Zeroconf. For other systems, a comitup Workstation entry is published which is visible to Zeroconf browsing applications, allowing the IP address to be manually determined. The web service address is http://10.41.0.1.
comitup logs to /var/log/comitup.log.
- -h, -help - Print help and exit
- -c, -check - Check the wifi device configuration and exit
D-Bus Interface¶Comitup provides a D-Bus object which claims the name com.github.davesteele.comitup on the path /com/github/davesteele/comitup, supporting the interface com.github.davesteele.comitup. The interface includes the following methods.
Return information about the current Comitup service. The keys are as follows:
- version - The package version.
- apname - The currently configured AP hotspot name.
- hostnames - A list of host names that are published for the service IP address.
- imode - The current interface mode for comitup. This returns the string `single' or `router'. In `single' mode, the hotspot is terminated when CONNECTED. In `router' mode, the hotspot is retained, the upstream connection is made with the other wifi device, and traffic is routed between them. The web service is terminated when CONNECTED.
Output: Array of DICT_ENTRY
Return a list of visible access points. This is represented as an array of D-Bus DICT_ENTRY. Each DICT_ENTRY contains strings associated with the following keys, ssid, strength (0 to 100) and security (encrypted or unencrypted).
Output: state, connection
This returns strings for the current comitup state (either HOTSPOT, CONNECTING, or CONNECTED) and the ssid name for the current connection on the wifi device.
Input: ssid, password
Delete any existing connection for ssid, create a new connection, and attempt to connect to it. The password may be a zero length string if not needed.
Delete the connection for ssid. The system will not be able to reconnect using this connection.
COPYRIGHT¶Comitup is Copyright (C) 2016-2019 David Steele <firstname.lastname@example.org>.
SEE ALSO¶comitup-conf(5), comitup-cli(8), comitup-web(8)