Browse Source

mkinitramfs: fixed module_list_running() to support modules with - in the filename

karasz/qt
Alejandro Mery 16 years ago
parent
commit
a574c43ef7
  1. 5
      base/mkinitramfs/install/D%libdir_kernel.in.txt

5
base/mkinitramfs/install/D%libdir_kernel.in.txt

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../mkinitramfs/install/D%libdir_kernel.in.txt
# Copyright (C) 2007 - 2008 The OpenSDE Project
# Copyright (C) 2007 - 2009 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -64,7 +64,8 @@ if [ -n "$moddir" ]; then
module_list_running() {
local x= module=
cat /proc/modules | cut -d' ' -f1 | while read x; do
module=$(find "$moddir" -type f -name "$x.ko")
y=$(echo "$x" | sed -e 's,_,[_-],g')
module=$(find "$moddir" -type f -name "$y.ko")
if [ -n "$module" ]; then
echo "$module"
else

Loading…
Cancel
Save