Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add router advertisement support for Matter #1922

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions functions/openhabian.bash
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,12 @@ config_ipv6() {
local aptConf="/etc/apt/apt.conf.d/S90force-ipv4"
local sysctlConf="/etc/sysctl.d/99-sysctl.conf"

echo -n "$(timestamp) [openHABian] Making sure router advertisements are available... "
if ! grep -qs "net.ipv6.conf.all.accept_ra = 1" "$sysctlConf"; then
echo -e "\\n# Enable IPv6 route advertisements\\n# This is needed for proper discovery with the Matter binding\\nnet.ipv6.conf.all.accept_ra = 1\\nnet.ipv6.conf.all.accept_ra_rt_info_max_plen = 64" >> "$sysctlConf"
fi
if cond_redirect sysctl --load; then echo "OK"; else echo "FAILED"; return 1; fi

if [[ "${1:-${ipv6:-enable}}" == "disable" ]]; then
echo -n "$(timestamp) [openHABian] Disabling IPv6... "
if ! grep -qs "^[[:space:]]*# Disable all IPv6 functionality" "$sysctlConf"; then
Expand Down
1 change: 0 additions & 1 deletion functions/wifi.bash
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ setup_hotspot() {
DEBIAN_FRONTEND=noninteractive apt install --yes -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' comitup &>/dev/null
systemctl enable --now comitup
comitup-cli d
echo "denyinterfaces wlan0 eth0" >> /etc/dhcpcd.conf
sed -i '3 i dhcp=internal' /etc/NetworkManager/NetworkManager.conf
install -m 644 "${BASEDIR:-/opt/openhabian}/includes/generic/100-disable-wifi-mac-randomization.conf" /etc/NetworkManager/conf.d/
if [[ $(systemctl is-active comitup) == "active" ]]; then
Expand Down
19 changes: 0 additions & 19 deletions includes/generic/50-timesyncd.conf
ecdye marked this conversation as resolved.
Show resolved Hide resolved

This file was deleted.

7 changes: 0 additions & 7 deletions includes/interfaces

This file was deleted.

14 changes: 0 additions & 14 deletions includes/openhab2logo

This file was deleted.

Loading