diff --git a/base/mkinitramfs/install/D%libdir_kernel.in.txt b/base/mkinitramfs/install/D%libdir_kernel.in.txt index fecf03db2..507bc9530 100644 --- a/base/mkinitramfs/install/D%libdir_kernel.in.txt +++ b/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