modeprobe after each boot

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

modeprobe after each boot

Postby Nico38 » Tue Jan 08, 2013 9:14 pm

Hi,

I have an application which needs i2c-dev module loaded to work properly.
My problem is I have to do "modprobe i2c-dev" after each boot.
How can I get i2c-dev module loaded automatically ?

Nicolas
Nico38
 
Posts: 16
Joined: Mon Aug 06, 2012 8:44 pm
Location: Grenoble, France

Re: modeprobe after each boot

Postby WarheadsSE » Tue Jan 08, 2013 9:38 pm

Last edited by WarheadsSE on Tue Jan 08, 2013 10:43 pm, edited 1 time in total.
Reason: roops
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: modeprobe after each boot

Postby Nico38 » Tue Jan 08, 2013 9:41 pm

Hmmm, looks like it is /etc/modules-load.d/ right ?
Nico38
 
Posts: 16
Joined: Mon Aug 06, 2012 8:44 pm
Location: Grenoble, France

Re: modeprobe after each boot

Postby pepedog » Tue Jan 08, 2013 9:47 pm

I would do this
$this->bbcode_second_pass_code('', 'echo "i2c-dev" > /etc/modules-load.d/i2c-dev.conf')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: modeprobe after each boot

Postby Nico38 » Tue Jan 08, 2013 9:51 pm

$this->bbcode_second_pass_quote('pepedog', 'I') would do this
$this->bbcode_second_pass_code('', 'echo "i2c-dev" > /etc/modules-load.d/i2c-dev.conf')


Perfect !

Thanks to both of you for theses very quick answers.

Nicolas
Nico38
 
Posts: 16
Joined: Mon Aug 06, 2012 8:44 pm
Location: Grenoble, France


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests