Browse Source

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

user/chris/old/ruby
Alejandro Mery 17 years ago
parent
commit
8b1cdb5312
  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. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../mkinitramfs/install/D%libdir_kernel.in.txt # 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. # More information can be found in the files COPYING and README.
# #
@ -64,7 +64,8 @@ if [ -n "$moddir" ]; then
module_list_running() { module_list_running() {
local x= module= local x= module=
cat /proc/modules | cut -d' ' -f1 | while read x; do 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 if [ -n "$module" ]; then
echo "$module" echo "$module"
else else

Loading…
Cancel
Save