summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-11-02 11:16:05 +0100
committer Eric Hameleers <alien@slackware.com>2019-11-02 11:16:05 +0100
commit09db7c1245ab4ef3aa465cb16d0d50cfdbf48854 (patch)
tree2ad41d234b7926f96744850c50aee5674e61dfb9
parent5adc982391d84fce49e4f068347836fb136e2713 (diff)
downloadliveslak-09db7c1245ab4ef3aa465cb16d0d50cfdbf48854.tar.gz
liveslak-09db7c1245ab4ef3aa465cb16d0d50cfdbf48854.tar.xz
liveinit.tpl: cleanup some code
These lines became obsolete with Linux kernel 2.6 (Slackware >= 11) when the kernel module extension changed from .o to .ko.
Diffstat (limited to '')
-rw-r--r--liveinit.tpl8
1 files changed, 0 insertions, 8 deletions
diff --git a/liveinit.tpl b/liveinit.tpl
index a1c0aed..3ac0782 100644
--- a/liveinit.tpl
+++ b/liveinit.tpl
@@ -308,14 +308,6 @@ if [ ! -d /lib/modules/$(uname -r) ]; then
elif [ -x ./load_kernel_modules ]; then # use load_kernel_modules script:
echo "${MARKER}: Loading kernel modules from initrd image:"
. ./load_kernel_modules 1>/dev/null 2>/dev/null
-else # load modules (if any) in order:
- if ls /lib/modules/$(uname -r)/*.*o 1> /dev/null 2> /dev/null ; then
- echo "${MARKER}: Loading kernel modules from initrd image:"
- for module in /lib/modules/$(uname -r)/*.*o ; do
- /sbin/modprobe $module 1>/dev/null 2>/dev/null
- done
- unset module
- fi
fi
# Sometimes the devices need extra time to be available.