Commit ddfa0f85 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Workaround for network-manager bug

parent 5beffbd8
...@@ -260,7 +260,9 @@ exec 3>&1 ...@@ -260,7 +260,9 @@ exec 3>&1
read -r address;read -r netmask;read -r gateway read -r address;read -r netmask;read -r gateway
if [[ $? = 0 ]]; then if [[ $? = 0 ]]; then
localuuid=$(LC_ALL=C nmcli -f UUID,DEVICE connection show | grep $1 | awk '{print $1}') localuuid=$(LC_ALL=C nmcli -f UUID,DEVICE connection show | grep $1 | awk '{print $1}')
nmcli con mod $localuuid ipv4.method manual ipv4.addresses "$address/$netmask $gateway" ipv4.dns "8.8.8.8,$gateway" nmcli con mod $localuuid ipv4.method manual ipv4.addresses "$address/$netmask"
nmcli con mod $localuuid ipv4.method manual ipv4.gateway "$gateway"
nmcli con mod $localuuid ipv4.dns "8.8.8.8,$gateway"
nmcli c down $localuuid nmcli c down $localuuid
sleep 2 sleep 2
nmcli c up $localuuid nmcli c up $localuuid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment