Opened 11 years ago

Closed 11 years ago

Last modified 4 years ago

#1054 closed defect (worksforme)

files in /etc/modules.d don't load

Reported by: sherbang Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: Cc:…


the load_modules command in /etc/ is broken.

the first line changes to the wrong directory, it should probably be
cd /lib/modules/uname -r/

The sed script in the second line outputs like "insmod wlan", but insmod requires an extension (IE: "insmod wlan.ko").
it should be changed to:

sed 's/[#]*/insmod &.ko/' $* | ash 2>&-

or perhaps

sed 's/[#]*/insmod &.*/' $* | ash 2>&-

to support different module extensions for different kernel versions

Attachments (0)

Change History (3)

comment:1 Changed 11 years ago by sherbang

Oops, should've hit preview, the new code lines should be:

cd /lib/modules/`uname -r`/

sed 's/^[^#]*/insmod &.ko/' $* | ash 2>&- || :
sed 's/^[^#]*/insmod &.*/' $* | ash 2>&- || :

comment:2 Changed 11 years ago by florian

  • Resolution set to worksforme
  • Status changed from new to closed

Actually busybox's insmod command is capable of loading a module without specifying its extension :

insmod module 

Will work.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.