Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 9143 Details for
Bug 17109
different kernel support for /etc/init.d/modules
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/etc/modules.autoload support for kernel versions customization
patch (text/plain), 2.12 KB, created by
nth
on 2003-03-08 18:37:00 UTC
(
hide
)
Description:
/etc/modules.autoload support for kernel versions customization
Filename:
MIME Type:
Creator:
nth
Created:
2003-03-08 18:37:00 UTC
Size:
2.12 KB
patch
obsolete
>*** modules Sat Mar 8 22:55:41 2003 >--- modules-003 Sat Mar 8 22:55:47 2003 >*************** >*** 25,32 **** > /sbin/modules-update &>/dev/null > eend $? "Failed to calculate dependencies" > >! # Loop over every line in /etc/modules.autoload. >! (cat /etc/modules.autoload; echo) | # make sure there is a LF at the end > while read module args > do > case "${module}" in >--- 25,66 ---- > /sbin/modules-update &>/dev/null > eend $? "Failed to calculate dependencies" > >! # Loop over every line in /etc/modules.autoload* >! # for example, if you have kernel 2.4.20, i will load : >! # - /etc/modules.autoload >! # - /etc/modules.autoload-kernel-2 >! # - /etc/modules.autoload-kernel-2.4 >! # - /etc/modules.autoload-kernel-2.4.20 >! # each of these files may be absent >! AUTOLOAD_KERNEL_GENERIC="/etc/modules.autoload" >! AUTOLOAD_KERNEL_VERSION="" >! AUTOLOAD_KERNEL_PATCHLEVEL="" >! AUTOLOAD_KERNEL_PATCHSUBLEVEL="" >! if [ -e /proc/sys/kernel/osrelease ] >! then >! KERNEL_FULL_VERSION=`sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*\$/\1/' </proc/sys/kernel/osrelease` >! if echo "$KERNEL_FULL_VERSION" | grep '^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' >/dev/null >! then >! KERNEL_VERSION=`echo "$KERNEL_FULL_VERSION" | sed 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)$/\1/'` >! KERNEL_PATCHLEVEL=`echo "$KERNEL_FULL_VERSION" | sed 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)$/\2/'` >! KERNEL_PATCHSUBLEVEL=`echo "$KERNEL_FULL_VERSION" | sed 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)$/\3/'` >! AUTOLOAD_KERNEL_VERSION="$AUTOLOAD_KERNEL_GENERIC-kernel-$KERNEL_VERSION" >! AUTOLOAD_KERNEL_PATCHLEVEL="$AUTOLOAD_KERNEL_VERSION.$KERNEL_PATCHLEVEL" >! AUTOLOAD_KERNEL_PATCHSUBLEVEL="$AUTOLOAD_KERNEL_PATCHLEVEL.$KERNEL_PATCHSUBLEVEL" >! fi >! fi >! for autoload_file in \ >! "$AUTOLOAD_KERNEL_GENERIC" \ >! "$AUTOLOAD_KERNEL_VERSION" \ >! "$AUTOLOAD_KERNEL_PATCHLEVEL" \ >! "$AUTOLOAD_KERNEL_PATCHSUBLEVEL" >! do >! if [ -e "$autoload_file" ] >! then >! cat "$autoload_file" >! echo # make sure there is a LF at the end >! fi >! done | > while read module args > do > case "${module}" in
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17109
: 9143