diff options
author | Erik Troan <ewt@redhat.com> | 1998-05-01 21:36:52 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1998-05-01 21:36:52 +0000 |
commit | adb2313de02573e316c46b2546e14179e018b5e2 (patch) | |
tree | f6e733641161b97995be6b5cd80678059279e80c | |
parent | f2e10621a35f1d4586cbc30c1550af0f22d22186 (diff) | |
download | initscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar initscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar.gz initscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar.bz2 initscripts-adb2313de02573e316c46b2546e14179e018b5e2.tar.xz initscripts-adb2313de02573e316c46b2546e14179e018b5e2.zip |
run depmod properly
-rwxr-xr-x | rc.d/rc.sysinit | 10 |
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 |