aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/contrib/lsb-v3/etc/init.d/modules
diff options
context:
space:
mode:
authorDJ Lucas <dj@linuxfromscratch.org>2011-05-14 21:00:31 +0000
committerDJ Lucas <dj@linuxfromscratch.org>2011-05-14 21:00:31 +0000
commitdc55fb5e4b99cd1150afe41f7ce50333a773bb6a (patch)
tree3d49341fb38468a5f6c85b54c08171ced1e96c90 /bootscripts/contrib/lsb-v3/etc/init.d/modules
parentb4a678295e56da7be73a847cb460b477a54efc8a (diff)
Changes per thread starting at http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2011-May/064677.html
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9532 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts/contrib/lsb-v3/etc/init.d/modules')
-rw-r--r--bootscripts/contrib/lsb-v3/etc/init.d/modules10
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:"