summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/todo.py b/todo.py
index 051a63efe..87c3e5eb9 100644
--- a/todo.py
+++ b/todo.py
@@ -1148,12 +1148,13 @@ class ToDo:
list = devices.keys ()
list.sort()
dev = devices[list[0]]
- dev.set (("bootproto", bootProto))
-
- if (ip):
- dev.set (("ipaddr", ip))
- if (netmask):
- dev.set (("netmask", netmask))
+ if bootProto:
+ dev.set (("bootproto", bootProto))
+ else:
+ if (ip):
+ dev.set (("ipaddr", ip))
+ if (netmask):
+ dev.set (("netmask", netmask))
if (todo.instClass.mouse):
(type, device, emulateThreeButtons) = todo.instClass.mouse