You are not logged in.

#1 2008-12-09 15:56:10

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

How to set module options in-kernel?

Setting module options is usually done via /etc/modprobe.d/xxx..

How can I set the options when the .. err.. modules are compiled into the kernel?

I tried adding the following to my kernel line, but it changed nothing:

cfg80211.ieee80211_regdom=AT

I tried writing it using

su
echo AT > /sys/module/cfg80211/parameters/ieee80211_regdom

which gives me a permission denied error.

sudo sysctl -A | grep cfg doesn't show any results..

What's the proper way to do this?

Thanks in advance!

Last edited by schuay (2008-12-09 15:57:10)

Offline

#2 2008-12-09 16:00:54

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: How to set module options in-kernel?

schuay wrote:

I tried writing it using

su
echo AT > /sys/module/cfg80211/parameters/ieee80211_regdom

which gives me a permission denied error.

Maybe you have "noclobber" option set in your .bashrc?  This option prevents echo/cat from overwriting existing files...

Offline

#3 2008-12-09 22:53:49

TjPhysicist
Member
From: Waterloo, Canada
Registered: 2008-04-12
Posts: 126
Website

Re: How to set module options in-kernel?

you may want to do >> (append) instead of > (write/create new).


-Tj
Now reborn as Tjh_ (to keep it similar to my username in other places)

Offline

#4 2008-12-10 08:41:18

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: How to set module options in-kernel?

You could try using sysctl. It is, in principle, designed for what you asked... Don't use it myself, but this should get you going:

sysctl -a | grep ieee80211.regdom # this should help you find the proper one
sysctl -w <insert response from above>="AT"

You can store these changes in /etc/sysctl.conf


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

Board footer

Powered by FluxBB