need to load pcspkr kernel module at boot...

Asked by David Tilbrook

how to make a modprobe happen as part of boot...

To enable beeping, I had to:

     modprobe pcspkr

however, when I reboot I have to do it again.

How do I get it made part of the boot process, short of
adding it excplicitly?

-- david

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Run:

echo "pcspkr" | sudo tee -a /etc/modules > /dev/null

and it will be loaded at boot

Revision history for this message
David Tilbrook (dmtilbrook) said :
#2

Thank you.

I imagine that

      echo pcspkr >> /etc/modules

will work as well.

-- david

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you run it as root, yes. Sudo don't traverse redirection so sudo tee has to be used.

Revision history for this message
David Tilbrook (dmtilbrook) said :
#4

Thanks actionparsnip, that solved my question.