Skip to content
Snippets Groups Projects
Commit e7712396 authored by Bob Lantz's avatar Bob Lantz
Browse files

Only restart network-manager if we've changed config

parent e5380d64
No related branches found
No related tags found
No related merge requests found
......@@ -63,9 +63,9 @@ def fixNetworkManager( root, intf ):
print '*** Adding', line.strip(), 'to', cfile
with open( cfile, 'a' ) as f:
f.write( line )
# Probably need to restart network-manager to be safe -
# hopefully this won't disconnect you
root.cmd( 'service network-manager restart' )
# Probably need to restart network-manager to be safe -
# hopefully this won't disconnect you
root.cmd( 'service network-manager restart' )
def connectToInternet( network, switch='s1', rootip='10.254', subnet='10.0/8'):
"""Connect the network to the internet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment