$Log$
+ Revision 580.71 2001/10/29 16:39:54 ajc
+ * Finished the migratenet utility (finally).
+
Revision 580.70 2001/10/28 05:18:51 ajc
* migratenet almost finished
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/* Now go through the table looking for node names to enter */
- sprintf(buf, "cat %s |awk '{ FS=\"|\"; print $2 }' |sort -f |uniq -i",
+ sprintf(buf, "cat %s |awk -F \"|\" '{ print $2 }' |sort -f |uniq -i",
roomfilename);
roomfp = popen(buf, "r");
if (roomfp == NULL) {
sprintf(buf, "GOTO %s", mn->roomname);
serv_puts(buf);
serv_gets(buf);
+ printf("%s\n", &buf[4]);
if (buf[0] != '2') goto roomerror;
serv_puts("SNET");
unlink(roomfilename);
unlink(nodefilename);
- return(0);
+
+ printf("\n\n"
+ "If this conversion was successful, you do not need your\n"
+ "old network configuration files. Delete them now? "
+ );
+
+ gets(buf);
+ if (tolower(buf[0]) != 'y') exit(0);
+
+ get_config();
+ system("rm -fr ./network/systems");
+ system("rm -f ./network/mail.sysinfo");
+ system("rm -f ./network/internetmail.config");
+
+ exit(0);
}