Display name and status of each file as it is downloaded.

This commit is contained in:
Michael Brown
2007-08-03 12:49:21 +01:00
parent 6e46dddc2c
commit 218651e125
5 changed files with 30 additions and 18 deletions

View File

@@ -56,15 +56,9 @@ int dhcp ( struct net_device *netdev ) {
}
/* Perform DHCP */
printf ( "DHCP (%s %s)...", netdev->name, netdev_hwaddr ( netdev ) );
printf ( "DHCP (%s %s)", netdev->name, netdev_hwaddr ( netdev ) );
if ( ( rc = start_dhcp ( &monojob, netdev, dhcp_success ) ) == 0 )
rc = monojob_wait();
if ( rc == 0 ) {
printf ( "done\n" );
} else {
printf ( "failed (%s)\n", strerror ( rc ) );
}
rc = monojob_wait ( "" );
return rc;
}