commit: c7c2fbb02642dc3f9179df2cd5eec3629100dc29 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Wed Nov 27 16:16:59 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Wed Nov 27 16:16:59 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c7c2fbb0
initrd.scripts: load_modules(): Remove unused load_modules() function Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> defaults/initrd.scripts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 11b529b..597fb09 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -1267,22 +1267,6 @@ cmdline_hwopts() { MY_HWOPTS=${TMP_HWOPTS} } -load_modules() { - # Load modules listed in MY_HWOPTS if /lib/modules exists for the running - # kernel version - if [ -d "/lib/modules/${KV}" ] - then - good_msg 'Loading modules ...' - # Load appropriate kernel modules - for modules in ${MY_HWOPTS} - do - modules_scan ${modules} - done - else - good_msg 'Skipping module load; no modules in the ramdisk!' - fi -} - setup_keymap() { if [ "${DO_keymap}" ] then