Bug#497285: not possible to preseed that no gatway should be used?
I think it's as simple as this. Would this be acceptable for lenny?
Index: static.c
===================================================================
--- static.c (revision 55364)
+++ static.c (working copy)
@@ -146,7 +146,8 @@
debconf_get(client, "netcfg/get_gateway");
ptr = client->value;
- if (empty_str(ptr)) { /* No gateway, that's fine */
+ if (empty_str(ptr) || /* No gateway, that's fine */
+ (strcmp(client->value, "none") == 0)) /* special case for preseeding */ {
/* clear existing gateway setting */
memset(&gateway, 0, sizeof(struct in_addr));
return 0;
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: