findkey(kv, "DOMAINNAME", domainname);
freekeyvalues(kv);
- if (!(file = fopen(CONFIG_ROOT "/main/hostname.conf", "w")))
- {
- sprintf (message, _("Unable to write %s/main/hostname.conf"), CONFIG_ROOT);
- errorbox(message);
- return 0;
- }
- fprintf(file, "ServerName %s.%s\n", hostname,domainname);
- fclose(file);
-
if (!(file = fopen(CONFIG_ROOT "/main/hosts", "r")))
{
errorbox(_("Unable to open main hosts file."));
return 1;
}
-
-int handleisdn(void)
-{
- char command[STRING_SIZE];
- sprintf(command, "/etc/rc.d/init.d/mISDN config");
- if (runcommandwithstatus(command, _("ISDN"), _("Scanning and configuring ISDN devices."), NULL))
- errorbox(_("Unable to scan for ISDN devices."));
- // Need to write some lines that count the cards and say the names...
- return 1;
-}