Browse Source

use di_exec_mangle_status

r16057
tags/0.65
Joshua Kwan 17 years ago
parent
commit
5f1e1929ab
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      netcfg.c

+ 6
- 2
netcfg.c View File

@@ -76,8 +76,10 @@ int main(int argc, char *argv[])
* one can't get back to DHCP from static. yet. */
debconf_set(client, "netcfg/use_dhcp", "true");
while (1) {
switch(state) {
for (;;)
{
switch(state)
{
case BACKUP:
return 10;
case GET_INTERFACE:
@@ -108,6 +110,8 @@ int main(int argc, char *argv[])
ret = di_exec_shell_log(buf);
interface_down(interface);

ret = di_exec_mangle_status(ret);

free(buf);

di_info("link status for %s is: %s (%d)", interface,


Loading…
Cancel
Save