diff options
Diffstat (limited to 'vmdebootstrap/network.py')
-rw-r--r-- | vmdebootstrap/network.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vmdebootstrap/network.py b/vmdebootstrap/network.py index 740dede..115b5c3 100644 --- a/vmdebootstrap/network.py +++ b/vmdebootstrap/network.py @@ -4,25 +4,25 @@ # -*- coding: utf-8 -*- # # network.py -# +# # Copyright 2015 Neil Williams <codehelp@debian.org> -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. -# -# +# +# import os from vmdebootstrap.base import ( @@ -41,6 +41,7 @@ class Networking(Base): self.message('Setting up networking') ifc_d = os.path.join(rootdir, 'etc', 'network', 'interfaces.d') ifc_file = os.path.join(rootdir, 'etc', 'network', 'interfaces') + ethpath = os.path.join(ifc_d, 'setup') with open(ifc_file, 'w') as netfile: netfile.write(line) if not os.path.exists(ifc_d): |