4b92e922ef
USB tethering allows users to use their phone's WiFi or WWAN interface as an access point for the device they connect the phone with over USB. This way, they can use their data plan with a laptop or desktop when regular Internet access is absent. Configure NetworkManager to manage the usb0 iface from initfs so users can configure it in GNOME Settings or KDE. Include a NetworkManager dispatcher script as well to handle postmarketOS' setup with unudhcpd as we want to provide an SSH login over USB when tethering is disabled. If tethering is enabled, unudhpcd is stopped and its functionality is taken over by NetworkManager through an instance of dnsmasq. NetworkManager will also configure the necessary settings to allow IP forwarding and firewall rules during tethering. Once disabled, NetworkManager cleans up these settings and our dispatcher script starts unudhcpd again. Due to upstream changes, NetworkManager requires networkmanager-dnsmasq subpackage as dependency as dnsmasq needs DBus support for NetworkManager. Without it, NetworkManager will silently fail spawning dnsmasq instances. [ci:skip-build]: already built successfully in CI |
||
---|---|---|
.. | ||
APKBUILD | ||
postmarketos-base-ui-elogind.post-install | ||
postmarketos-base-ui-elogind.pre-upgrade | ||
postmarketos-base-ui-openrc-settingsd.post-install | ||
postmarketos-base-ui-openrc-settingsd.post-upgrade | ||
postmarketos-base-ui.post-install | ||
postmarketos-base-ui.post-upgrade | ||
rootfs-etc-chrony-chrony.conf | ||
rootfs-etc-conf.d-openrc-settingsd | ||
rootfs-etc-conf.d-tinydm | ||
rootfs-etc-conf.d-wpa_supplicant | ||
rootfs-etc-elogind-logind.conf | ||
rootfs-etc-NetworkManager-conf.d-hostname-mode.conf | ||
rootfs-etc-NetworkManager-conf.d-tethering.conf | ||
rootfs-etc-NetworkManager-conf.d-use-dnsmasq.conf | ||
rootfs-etc-NetworkManager-dispatcher.d-85-tethering | ||
rootfs-etc-NetworkManager-dispatcher.d-99-dns-filter.sh | ||
rootfs-etc-pulse-default.pa.d-postmarketos.pa | ||
rootfs-etc-skel-.profile | ||
rootfs-etc-sleep-inhibitor.conf | ||
rootfs-etc-tinydm.d-env-wayland.d-50-firefox-wayland.sh | ||
rootfs-etc-tinydm.d-env-wayland.d-50-sdl-wayland.sh | ||
rootfs-etc-X11-Xwrapper.config | ||
rootfs-usr-lib-NetworkManager-system-connections-USB_Networking.nmconnection |