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/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to