aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-05-01 21:36:52 +0000
committerErik Troan <ewt@redhat.com>1998-05-01 21:36:52 +0000
commitadb2313de02573e316c46b2546e14179e018b5e2 (patch)
treef6e733641161b97995be6b5cd80678059279e80c /rc.d
parentf2e10621a35f1d4586cbc30c1550af0f22d22186 (diff)
downloadinitscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar
initscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar.gz
initscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar.bz2
initscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar.xz
initscripts-adb2313de02573e316c46b2546e14179e018b5e2.zip
run depmod properly
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit10
1 files changed, 7 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 844bb09f..c07d43ae 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -135,9 +135,13 @@ fi
if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
# Get ready for kerneld if module support in the kernel
- echo -n "Finding module dependencies"
- depmod -a
- echo ""
+ echo -n "Finding module dependencies... "
+ if [ -f /lib/modules/preferred ]; then
+ depmod -a preferred
+ else
+ depmod -a preferred
+ fi
+ echo "done"
fi
# load sound modules