Skip to content

Commit

Permalink
Update NetworkManager Config (#224)
Browse files Browse the repository at this point in the history
* Update networkmanager config to match OS

* drop Supervisor default

* remove divert of NetworkManager file

* switch to checkonline

* remove http from ping

* divert default config
  • Loading branch information
ikifar2012 committed Jul 25, 2022
1 parent 168d844 commit 1efaf1c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
6 changes: 3 additions & 3 deletions homeassistant-supervised/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SERVICE_DOCKER="docker.service"
SERVICE_NM="NetworkManager.service"

# Read infos from web
URL_VERSION_HOST="version.home-assistant.io"
URL_CHECK_ONLINE="checkonline.home-assistant.io"
URL_VERSION="https://version.home-assistant.io/stable.json"
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
Expand All @@ -36,8 +36,8 @@ info "Restarting docker service"
systemctl restart "${SERVICE_DOCKER}"

# Check network connection
while ! ping -c 1 -W 1 ${URL_VERSION_HOST}; do
info "Waiting for ${URL_VERSION_HOST} - network interface might be down..."
while ! ping -c 1 -W 1 ${URL_CHECK_ONLINE}; do
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
sleep 2
done

Expand Down
12 changes: 11 additions & 1 deletion homeassistant-supervised/etc/NetworkManager/NetworkManager.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ autoconnect-retries-default=0
rc-manager=file

[keyfile]
unmanaged-devices=type:bridge;type:tun;type:veth
unmanaged-devices=type:bridge;type:tun;driver:veth

[logging]
backend=journal

[connection]
connection.mdns=2
connection.llmnr=2

[connectivity]
uri=http://checkonline.home-assistant.io/online.txt

[device]
wifi.scan-rand-mac-address=no

This file was deleted.

0 comments on commit 1efaf1c

Please sign in to comment.