Browse Source

brown paper bag fixes

r16853
tags/0.70
Joshua Kwan 17 years ago
parent
commit
fd3dedd3dc
2 changed files with 16 additions and 2 deletions
  1. +10
    -0
      debian/changelog
  2. +6
    -2
      netcfg.c

+ 10
- 0
debian/changelog View File

@@ -1,3 +1,13 @@
netcfg (0.70) UNRELEASED; urgency=medium

* Joshua Kwan
- Brown paper bag upload.
- Add the netcfg/disable_dhcp template, default to false.
- usleep(1500) actually sleeps for 1500 _micro_seconds, not milliseconds.
sleep(2) instead for simplicity.

-- Joshua Kwan <joshk@triplehelix.org> Tue, 15 Jun 2004 15:00:53 -0700

netcfg (0.69) unstable; urgency=medium

* Sylvain Ferriol


+ 6
- 2
netcfg.c View File

@@ -77,7 +77,11 @@ int main(int argc, char *argv[])
/* always always always default back to DHCP, unless you've specified
* disable_dhcp on the command line. */
debconf_get(client, "netcfg/disable_dhcp");
debconf_set(client, "netcfg/use_dhcp", client->value);
if (!strcmp(client->value, "true"))
debconf_set(client, "netcfg/use_dhcp", "false");
else
debconf_set(client, "netcfg/use_dhcp", "true");

for (;;)
{
@@ -107,7 +111,7 @@ int main(int argc, char *argv[])
snprintf(buf, 64, "mii-diag -s %s", interface);

interface_up(interface);
usleep(1500);
sleep(2);
di_info("Executing: %s", buf);
ret = di_exec_shell_log(buf);
interface_down(interface);


Loading…
Cancel
Save