Update NetworkManager Config (#224)
* Update networkmanager config to match OS * drop Supervisor default * remove divert of NetworkManager file * switch to checkonline * remove http from ping * divert default config
This commit is contained in:
parent
168d844b33
commit
1efaf1ce08
3 changed files with 14 additions and 17 deletions
|
@ -14,7 +14,7 @@ SERVICE_DOCKER="docker.service"
|
||||||
SERVICE_NM="NetworkManager.service"
|
SERVICE_NM="NetworkManager.service"
|
||||||
|
|
||||||
# Read infos from web
|
# 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"
|
URL_VERSION="https://version.home-assistant.io/stable.json"
|
||||||
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
|
HASSIO_VERSION=$(curl -s ${URL_VERSION} | jq -e -r '.supervisor')
|
||||||
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
||||||
|
@ -36,8 +36,8 @@ info "Restarting docker service"
|
||||||
systemctl restart "${SERVICE_DOCKER}"
|
systemctl restart "${SERVICE_DOCKER}"
|
||||||
|
|
||||||
# Check network connection
|
# Check network connection
|
||||||
while ! ping -c 1 -W 1 ${URL_VERSION_HOST}; do
|
while ! ping -c 1 -W 1 ${URL_CHECK_ONLINE}; do
|
||||||
info "Waiting for ${URL_VERSION_HOST} - network interface might be down..."
|
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,17 @@ autoconnect-retries-default=0
|
||||||
rc-manager=file
|
rc-manager=file
|
||||||
|
|
||||||
[keyfile]
|
[keyfile]
|
||||||
unmanaged-devices=type:bridge;type:tun;type:veth
|
unmanaged-devices=type:bridge;type:tun;driver:veth
|
||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
backend=journal
|
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
|
|
@ -1,13 +0,0 @@
|
||||||
[connection]
|
|
||||||
id=Supervisor default
|
|
||||||
uuid=f35ac84e-420b-4003-a6d9-9700e8a32e54
|
|
||||||
type=802-3-ethernet
|
|
||||||
llmnr=2
|
|
||||||
mdns=2
|
|
||||||
|
|
||||||
[ipv4]
|
|
||||||
method=auto
|
|
||||||
|
|
||||||
[ipv6]
|
|
||||||
addr-gen-mode=stable-privacy
|
|
||||||
method=auto
|
|
Loading…
Reference in a new issue