summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-12 22:57:29 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-12 22:57:29 +0000
commitf451377cc1194837ce579afc57bee6de28fe3344 (patch)
tree277679a4bc449648086ff289cdbd2878989636dc /mdk-stage1
parent5f740e74b9e2f27b2f3d500c75d9b4986a0a53ae (diff)
downloaddrakx-f451377cc1194837ce579afc57bee6de28fe3344.tar
drakx-f451377cc1194837ce579afc57bee6de28fe3344.tar.gz
drakx-f451377cc1194837ce579afc57bee6de28fe3344.tar.bz2
drakx-f451377cc1194837ce579afc57bee6de28fe3344.tar.xz
drakx-f451377cc1194837ce579afc57bee6de28fe3344.zip
blah, don't include my test file in the repositoty
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/probing.c2
-rw-r--r--mdk-stage1/stdio-frontend.c13
2 files changed, 7 insertions, 8 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index c61552f07..6d70137e2 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -397,7 +397,7 @@ char ** get_net_devices(void)
while (ptr && *ptr) {
if (net_device_available(*ptr)) {
- log_message("NET: interface %s available", *ptr);
+ log_message("NET: %s is available", *ptr);
tmp[i++] = strdup(*ptr);
}
ptr++;
diff --git a/mdk-stage1/stdio-frontend.c b/mdk-stage1/stdio-frontend.c
index 27aa3782e..095c269a0 100644
--- a/mdk-stage1/stdio-frontend.c
+++ b/mdk-stage1/stdio-frontend.c
@@ -104,22 +104,21 @@ static int actually_drawn;
void init_progression(char *msg, int size)
{
+ int i;
size_progress = size;
actually_drawn = 0;
printf("%s\n[", msg);
+ for (i=0; i<40; i++)
+ printf(".");
+ printf("]\033[G["); /* only works on ANSI-compatibles */
+ fflush(stdout);
}
void update_progression(int current_size)
{
while ((int)((current_size*40)/size_progress) > actually_drawn) {
- printf(".");
+ printf("*");
actually_drawn++;
- if (actually_drawn == 10)
- printf("(25%%)");
- if (actually_drawn == 20)
- printf("(50%%)");
- if (actually_drawn == 30)
- printf("(75%%)");
}
fflush(stdout);
}