diff options
Diffstat (limited to 'bootscripts/contrib/lsb-v3/etc/init.d/modules')
-rw-r--r-- | bootscripts/contrib/lsb-v3/etc/init.d/modules | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bootscripts/contrib/lsb-v3/etc/init.d/modules b/bootscripts/contrib/lsb-v3/etc/init.d/modules index 2dd1d7212..18febfbc0 100644 --- a/bootscripts/contrib/lsb-v3/etc/init.d/modules +++ b/bootscripts/contrib/lsb-v3/etc/init.d/modules @@ -10,7 +10,7 @@ # Default-Start: S # Default-Stop: # Short-Description: Loads required modules. -# Description: Loads modules listed in /etc/sysconfig/modules. +# Description: Loads modules listed in /etc/default/modules. # X-LFS-Provided-By: LFS ### END INIT INFO @@ -24,8 +24,8 @@ case "${1}" in # Exit if there's no modules file or there are no # valid entries - [ -r /etc/sysconfig/modules ] && - egrep -qv '^($|#)' /etc/sysconfig/modules || + [ -r /etc/default/modules ] && + egrep -qv '^($|#)' /etc/default/modules || exit 0 # If proc is mounted, find the current kernel @@ -44,11 +44,11 @@ case "${1}" in # Only try to load modules if the user has actually given us # some modules to load. - if egrep -qv '^(#|$)' /etc/sysconfig/modules 2>/dev/null + if egrep -qv '^(#|$)' /etc/default/modules 2>/dev/null then # Read in the configuration file. - exec 9>&0 < /etc/sysconfig/modules + exec 9>&0 < /etc/default/modules message="${INFO}Loading modules:" |