You are not logged in.
since kernel 2.6.31-rc2, the rfkill switch on my notebook starts working. im trying to access it and make it restart the wireless network with netcfg. in order to do this im setting the following rule in /etc/udev/rules.d/rfkill.rules
SUBSYSTEM=="rfkill", ATTRS{state}=="1", RUN+="/etc/rc.d/net-auto restart"
SUBSYSTEM=="rfkill", ATTRS{state}=="0", RUN+="/etc/rc.d/net-auto stop"
these dont work.
if, instead i make it output something to a file replacing the RUN+= entry with for example "date > /etc/rfkill_test" it does work.
is there any restriction on what udev can do?
it appears netcfg2 is not working properly when called from udev. can anyone help?
Offline
What does it mean by you "not work" ? Is there any error message?
Offline
nope, nothing... the rule is being run, the script is being run, but it acts as if it had no root priviledge.... yet, on a test case, i wrote a file in /etc with it...
Offline
something else ive been seeing. whenever a script runs without an interactive shell (aka, from cron, udev, or pm-suspend), they fail with these errors:
/bin/stty: standard input: Inappropriate ioctl for device dbus
can anyone help debug this? net-auto for example, fails to load the network during boot.
ive been tweaking my kernel to speed up compile time (removed drivers mostly), could this be the culprit? kernel config here in pastebin: http://pastebin.com/m239980e7
Offline