network: reload NM connection after setting it up

Apparently NM monitor only its main configuration for changes, but not
connection files. Force reloading it.
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-02 02:08:36 +02:00
parent 7c15b9b0ea
commit d99a563542
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -48,6 +48,8 @@ __EOF__
echo "addresses1=$ip;32" >> $nm_config
fi
chmod 600 $nm_config
# reload connection
nmcli connection load $nm_config || :
else
# No NetworkManager enabled, configure the network manually
/sbin/ifconfig $INTERFACE $ip netmask 255.255.255.255