Browse Source

Print "<none>" for an unspecified hostname

r1724
master
Matt Kraai 20 years ago
parent
commit
c07bab0470
  1. 2
      debian/changelog
  2. 4
      netcfg-dhcp.c

2
debian/changelog

@ -5,6 +5,8 @@ netcfg (0.22) UNRELEASED; urgency=low
#defines in cdebconf/debconfclient.h
* Tollef Fog Heen
- Reinstate netcfg-dhcp.templates which got lost in a branch
* Matt Kraai
- Print "<none>" for an unspecified hostname
-- Tollef Fog Heen <tfheen@debian.org> Tue, 17 Dec 2002 00:01:34 +0100

4
netcfg-dhcp.c

@ -2,6 +2,7 @@
netcfg-dhcp.c - Configure a network via dhcp for the debian-installer
Copyright (C) 2000-2002 David Kimdon <dwhedon@debian.org>
Copyright (C) 2003 Matt Kraai
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -158,7 +159,8 @@ int main(int argc, char *argv[])
"interface", interface, NULL);
client->command(client, "subst", "netcfg/confirm_dhcp",
"hostname", hostname, NULL);
"hostname", (hostname ? hostname : _("<none>")),
NULL);
client->command(client, "subst", "netcfg/confirm_dhcp",
"domain", (domain ? domain : _("<none>")),

Loading…
Cancel
Save