#include <errno.h>
#include <stdio.h>
#include <strings.h>

main()
{
   int cpu_nr, tcp_ip_nr;
   char *hv_config[3];

   if (get_config( &tcp_ip_nr, &cpu_nr, hv_config) != 0){
      printf (" error in get_config \n");
      exit (0);
   }

   system("attr -we -pe le0*");
   system("del le0");
   if ( cpu_nr == 1){
      system("rename le0.b1 le0");
      system("del le0.b2");
   }
   else if ( cpu_nr == 2){
      system("rename le0.b2 le0");
      system("del le0.b1");
   }
   else {
      printf(" wrong cpu_nr \n");
      exit(0);
   }
   system("fixmod le0 -ua=8001");
   system("load -d le0");
}