Skip to content

Commit

Permalink
Add router advertisement support for Matter (#1922)
Browse files Browse the repository at this point in the history
Fixes #1919

Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye authored Oct 25, 2024
1 parent 267df26 commit 7d97bd8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 41 deletions.
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

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.

0 comments on commit 7d97bd8

Please sign in to comment.