diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-07-24 06:01:35 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-07-24 06:01:35 +0000 |
commit | 7579f1cca3936085c472069ff529af6f6c09f8b1 (patch) | |
tree | 3697cadf202150b2acff70a8b3c319b893450e1d /loader/loader.c | |
parent | 669fc7d1b71de909ee9707b7245ee88c9afd493b (diff) | |
download | anaconda-7579f1cca3936085c472069ff529af6f6c09f8b1.tar.gz anaconda-7579f1cca3936085c472069ff529af6f6c09f8b1.tar.xz anaconda-7579f1cca3936085c472069ff529af6f6c09f8b1.zip |
add parallel port modules to stage 2 module ball and load them so that kudzu can automagically try to set up your printer
Diffstat (limited to 'loader/loader.c')
-rw-r--r-- | loader/loader.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index 6a7861251..f2f96739a 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2996,6 +2996,22 @@ static int usbInitialize(moduleList modLoaded, moduleDeps modDeps, return 0; } +/* This loads the necessary parallel port drivers for printers so that + kudzu can autodetect and setup printers in post install*/ +static void initializeParallelPort(moduleList modLoaded, moduleDeps modDeps, + moduleInfoSet modInfo, int flags) { +#if !defined (__i386__) + return; +#endif + if (FL_NOPARPORT(flags)) return; + + logMessage("loading parallel port drivers..."); + if (mlLoadModuleSet("parport_pc", modLoaded, modDeps, modInfo, flags)) { + logMessage("failed to load parport_pc module"); + return; + } +} + /* This forces a pause between initializing usb and trusting the /proc stuff */ static void usbInitializeMouse(moduleList modLoaded, moduleDeps modDeps, @@ -3543,6 +3559,7 @@ int main(int argc, char ** argv) { mlLoadModuleSet("raid0:raid1:raid5:msdos:ext3:reiserfs:jfs:xfs:lvm-mod", modLoaded, modDeps, modInfo, flags); + initializeParallelPort(modLoaded, modDeps, modInfo, flags); usbInitializeMouse(modLoaded, modDeps, modInfo, flags); |