aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-06-01 13:58:40 +0000
committerErik Troan <ewt@redhat.com>1998-06-01 13:58:40 +0000
commitb1946e794961dbd6540b39f99388d4ff4a2f5e96 (patch)
treee89786a65f4dc9674365a17d22bff0113c2556e4 /rc.d/rc.sysinit
parent66dd82255c6f9919fae5e45f1f2d923312b2e7ab (diff)
downloadinitscripts-b1946e794961dbd6540b39f99388d4ff4a2f5e96.tar
initscripts-b1946e794961dbd6540b39f99388d4ff4a2f5e96.tar.gz
initscripts-b1946e794961dbd6540b39f99388d4ff4a2f5e96.tar.bz2
initscripts-b1946e794961dbd6540b39f99388d4ff4a2f5e96.tar.xz
initscripts-b1946e794961dbd6540b39f99388d4ff4a2f5e96.zip
1) if preferred doesn't exist, run depmod -a normally
2) do proper symlink check for preferred
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 9213b86f..231290bb 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -136,10 +136,10 @@ fi
if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
# Get ready for kerneld if module support in the kernel
echo -n "Finding module dependencies... "
- if [ -f /lib/modules/preferred ]; then
+ if [ -e /lib/modules/preferred ]; then
depmod -a preferred
else
- depmod -a preferred
+ depmod -a
fi
echo "done"
fi