install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 318cf4370f67ac107f08afdfa367d7b81641c5d7
parent f705cec124c120c37520a729ffa8c7279c10a978
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 11 Jan 2017 08:21:27 +0100

Fix(DHCP): Now supporting DHCP configuration for interface

Diffstat:
Mscreens/install/install.py | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -909,7 +909,13 @@ class Install: # Interface options if type(self.conf_lst["network"]) == type(string) and self.conf_lst["network"] == "DHCP": - print("Do DHCP stuff") + with open("/etc/sysconfig/ifconfig.eth0", "w+") as fd: + fd.write("ONBOOT=yes\n") + fd.write("IFACE=eth0\n") + fd.write("SERVICE=\"dhcpd\"\n") + fd.write("DHCP_START=\"-b -q\"\n") + fd.write("DHCP_STOP=\"-k\"\n") + fd.close() else if type(self.conf_lst["network"]) != type(False): with open("/etc/sysconfig/ifconfig.eth0", "w+") as fd: fd.write("ONBOOT=yes\n")