Re: changes to be made to redhat's /etc/rc.sysinit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 18, 2003 at 11:27:11AM +0530, Apurva Mehta wrote:
> if ! LC_ALL=C grep -iq nomodules /proc/cmdline 2>/dev/null && [ -f
> /proc/ksyms ]; then    
> 	USEMODULES=y
> else
>     USEMODULES=y
> fi
> 
> Is this change sufficient or do more changes need to be made? I ask

If you want USEMODULES to always be on, you might as well delete this
whole block, and replace it with a single line, USEMODULES=y. If you
still want module loading to be conditional, change the /proc/ksyms to
/proc/kallsyms. Duplicating the code block to test for both would allow
2.6 and 2.4 use...  (Another approach would be to learn the sh test
syntax to test for the existece of either /proc/ksyms or (-o?)
/proc/kallsyms.

> because many of my modules are not loaded automatically eventhough I
> can load them manually with modprobe (examples are ppp_deflate and
> bsd_comp)

Check the modules.conf(5) manpage.

-- 
"Learning curve encryption is much more powerful than
eliptical curve encryption." -- Alan Olsen

Attachment: pgp00482.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux