#include #include #include 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 bm_to*"); if ( cpu_nr == 1){ system("rename bm_to_scm1 bm_to_scm"); system("del bm_to_scm2"); system("attr -nw bm_to_scm"); } else if ( cpu_nr == 2){ system("rename bm_to_scm2 bm_to_scm"); system("del bm_to_scm1"); system("attr -nw bm_to_scm"); } else { printf(" wrong cpu_nr \n"); exit(0); } }