mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-02 00:02:55 +02:00
Bootvorgang des Installers weitergebracht.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@343 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
* Contains some functs for scanning /proc for ide info on CDROMS and
|
||||
* harddisks.
|
||||
*
|
||||
* $Id: ide.c,v 1.4 2003/12/11 11:25:53 riddles Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
#include "install.h"
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
* (c) Lawrence Manning, 2001
|
||||
* Contains main entry point, and misc functions.
|
||||
*
|
||||
* $Id: main.c,v 1.63.2.57 2005/09/25 19:57:46 gespinasse Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
#include "install.h"
|
||||
@@ -24,26 +22,8 @@ char **ctr;
|
||||
char *pcmcia = NULL;
|
||||
extern char url[STRING_SIZE];
|
||||
|
||||
extern char *bz_tr[];
|
||||
extern char *cs_tr[];
|
||||
extern char *da_tr[];
|
||||
extern char *en_tr[];
|
||||
extern char *es_tr[];
|
||||
extern char *fi_tr[];
|
||||
extern char *fr_tr[];
|
||||
extern char *hu_tr[];
|
||||
extern char *la_tr[];
|
||||
extern char *nl_tr[];
|
||||
extern char *de_tr[];
|
||||
extern char *tr_tr[];
|
||||
extern char *it_tr[];
|
||||
extern char *el_tr[];
|
||||
extern char *pl_tr[];
|
||||
extern char *pt_tr[];
|
||||
extern char *so_tr[];
|
||||
extern char *sv_tr[];
|
||||
extern char *no_tr[];
|
||||
extern char *vi_tr[];
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -51,10 +31,6 @@ int main(int argc, char *argv[])
|
||||
char *langnames[] = { "English", NULL };
|
||||
char *shortlangnames[] = { "en", NULL };
|
||||
char **langtrs[] = { en_tr, NULL };
|
||||
#elifdef LANG_ALL
|
||||
char *langnames[] = { "Brasil", "Cestina", "Dansk", "Deutsch", "English", "Español", "Français", "Hellenic", "Italiano", "Spanish Latino", "Magyar", "Nederlands", "Norsk", "Polski", "Português", "Soomali", "Suomi", "Svenska", "Türkçe", "Tieng Viet", NULL };
|
||||
char *shortlangnames[] = { "bz", "cs", "da", "de", "en", "es", "fr", "el", "it", "la", "hu", "nl", "no", "pl", "pt", "so", "fi", "sv", "tr", "vi", NULL };
|
||||
char **langtrs[] = { bz_tr, cs_tr, da_tr, de_tr, en_tr, es_tr, fr_tr, el_tr, it_tr, la_tr, hu_tr, nl_tr, no_tr, pl_tr, pt_tr, so_tr, fi_tr, sv_tr, tr_tr, vi_tr, NULL };
|
||||
#else
|
||||
char *langnames[] = { "Deutsch", "English", NULL };
|
||||
char *shortlangnames[] = { "de", "en", NULL };
|
||||
@@ -162,29 +138,13 @@ int main(int argc, char *argv[])
|
||||
/* No need to ask. "choice" already has the index for English */
|
||||
#else
|
||||
rc = newtWinMenu("Language selection",
|
||||
"Select the language you wish to use for the " NAME ".", 50, 5, 5, 8,
|
||||
langnames, &choice, "Ok", NULL);
|
||||
"Select the language you wish to use for your " NAME ".", 50, 5, 5, 8,
|
||||
langnames, &choice, "OK", NULL);
|
||||
#endif
|
||||
ctr = langtrs[choice];
|
||||
strcpy(shortlangname, shortlangnames[choice]);
|
||||
if (strcmp(shortlangname, "el") == 0)
|
||||
mysystem("/bin/setfont iso07u-16");
|
||||
else if (strcmp(shortlangname, "pt") == 0)
|
||||
mysystem("/bin/setfont lat1-16");
|
||||
else if (strcmp(shortlangname, "bz") == 0)
|
||||
mysystem("/bin/setfont lat1-16");
|
||||
else if (strcmp(shortlangname, "cs") == 0)
|
||||
mysystem("/bin/setfont lat2-16");
|
||||
else if (strcmp(shortlangname, "hu") == 0)
|
||||
mysystem("/bin/setfont lat2-16");
|
||||
else if (strcmp(shortlangname, "pl") == 0)
|
||||
mysystem("/bin/setfont lat2-16");
|
||||
else if (strcmp(shortlangname, "tr") == 0)
|
||||
mysystem("/bin/setfont lat5-16");
|
||||
else if (strcmp(shortlangname, "vi") == 0)
|
||||
mysystem("/bin/setfont viscii10-8x16");
|
||||
else
|
||||
mysystem("/bin/setfont lat0-16");
|
||||
|
||||
mysystem("/bin/setfont lat0-16");
|
||||
|
||||
newtDrawRootText(14, 0, NAME " v" VERSION " - " SLOGAN );
|
||||
newtPushHelpLine(ctr[TR_HELPLINE]);
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
*
|
||||
* Copyright 2002: Mark Wormgoor <mark@wormgoor.com>
|
||||
*
|
||||
* $Id: usb.c,v 1.9.2.3 2004/11/16 22:48:43 alanh Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
#include "install.h"
|
||||
@@ -37,23 +35,22 @@ int initialize_usb() {
|
||||
ehcihcd = 0;
|
||||
}
|
||||
if (usbohci) {
|
||||
mysystem("/sbin/rmmod usb-ohci");
|
||||
mysystem("/sbin/rmmod ohci-hcd");
|
||||
usbohci = 0;
|
||||
}
|
||||
if (usbuhci) {
|
||||
mysystem("/sbin/rmmod usb-uhci");
|
||||
mysystem("/sbin/rmmod uhci-hcd");
|
||||
usbuhci = 0;
|
||||
}
|
||||
|
||||
if (mysystem("/sbin/modprobe ehci-hcd") == 0)
|
||||
ehcihcd = 1;
|
||||
if (mysystem("/sbin/modprobe usb-ohci") == 0)
|
||||
if (mysystem("/sbin/modprobe ohci-hcd") == 0)
|
||||
usbohci = 1;
|
||||
if (mysystem("/sbin/modprobe usb-uhci") == 0)
|
||||
if (mysystem("/sbin/modprobe uhci-hcd") == 0)
|
||||
usbuhci = 1;
|
||||
|
||||
mysystem("/sbin/modprobe hid");
|
||||
mysystem("/sbin/modprobe keybdev");
|
||||
mysystem("/sbin/modprobe usbhid");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -79,17 +76,17 @@ int write_usb_modules_conf() {
|
||||
|
||||
if (usbohci) {
|
||||
if (index)
|
||||
fprintf(handle,"alias usb-controller%d usb-ohci\n",index);
|
||||
fprintf(handle,"alias usb-controller%d ohci-hcd\n",index);
|
||||
else
|
||||
fprintf(handle,"alias usb-controller usb-ohci\n");
|
||||
fprintf(handle,"alias usb-controller ohci-hcd\n");
|
||||
index++;
|
||||
}
|
||||
|
||||
if (usbuhci) {
|
||||
if (index)
|
||||
fprintf(handle,"alias usb-controller%d usb-uhci\n",index);
|
||||
fprintf(handle,"alias usb-controller%d uhci-hcd\n",index);
|
||||
else
|
||||
fprintf(handle,"alias usb-controller usb-uhci\n");
|
||||
fprintf(handle,"alias usb-controller uhci-hcd\n");
|
||||
index++;
|
||||
}
|
||||
fclose(handle);
|
||||
|
||||
Reference in New Issue
Block a user