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:
parent
7c15b9b0ea
commit
d99a563542
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user