Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
ddfa0f85
Commit
ddfa0f85
authored
Mar 23, 2018
by
Igor Pecovnik
Browse files
Workaround for network-manager bug
parent
5beffbd8
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-submenu
View file @
ddfa0f85
...
...
@@ -260,7 +260,9 @@ exec 3>&1
read
-r
address
;
read
-r
netmask
;
read
-r
gateway
if
[[
$?
=
0
]]
;
then
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
sleep
2
nmcli c up
$localuuid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment