install

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

commit b0c44f83d62d40484da1491e2066fd5bda78ef02
parent 5a505c3204d34dc970a89c0456850c8f9114a6c5
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu, 12 Jan 2017 10:25:38 +0100

Fix(Python syntax)

Diffstat:
Mscreens/install/install.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -914,7 +914,7 @@ class Install: def config_network(self): self.dlg.infobox("Configuring network...") # Interface options - if type(self.conf_lst["network"]) == type(string) and + if type(self.conf_lst["network"]) == type(string) and \ self.conf_lst["network"] == "DHCP": with open("/etc/sysconfig/ifconfig.eth0", "w+") as fd: fd.write("ONBOOT=yes\n") @@ -923,14 +923,14 @@ class Install: fd.write("DHCP_START=\"-b -q\"\n") fd.write("DHCP_STOP=\"-k\"\n") fd.close() - else if type(self.conf_lst["network"]) != type(False): + elif type(self.conf_lst["network"]) != type(False): with open("/etc/sysconfig/ifconfig.eth0", "w+") as fd: fd.write("ONBOOT=yes\n") fd.write("IFACE=eth0\n") fd.write("SERVICE=ipv4-static") fd.write("IP=" + self.conf_lst["network"]["IP"] + "\n") fd.write("GATEWAY=" + self.conf_lst["network"]["GW"] + "\n") - fd.write("PREFIX=" self.conf_lst["network"]["NM"] + "\n") + fd.write("PREFIX="+ self.conf_lst["network"]["NM"] + "\n") fd.close() # DNS configuration