[Pkg-acpi-devel] Bug#524443: Bug#524443: boot: /sys/devices/platform/asus-laptop/wlan: Permission denied
Karsten Hilbert
Karsten.Hilbert at gmx.net
Sun May 10 14:51:57 UTC 2009
On Sat, May 09, 2009 at 10:17:12PM +0200, Michael Meskes wrote:
> > /usr/share/acpi-support/state-funcs: line 99: /sys/devices/platform/asus-laptop/wlan: Permission denied
>
> This line says:
>
> test -w /sys/devices/platform/asus-laptop/wlan && echo -n "$action" > /sys/devices/platform/asus-laptop/wlan
Not on my machine:
merkur:~# grep -n ".*" /usr/share/acpi-support/state-funcs | grep -C 5 99:
94: # For madwifi we need to check "operstate" instead.
95: if [ -w $DEVICE/operstate ] ; then
96: if [ "`cat $DEVICE/operstate`" = "up" ] ; then
97: # It's powered on. Switch it off.
98: ifdown $NET_IF
99: else
100: # It's powered off. Switch it on.
101: ifup $NET_IF
102: if [ -x /sbin/wpa_cli ] ; then
103: wpa_cli scan
104: fi
(My grepping is probably wrong as the shell will likely not
count empty and comment lines, right ?)
> Could you please tell us the permissions you have along the path from /sys to
> that (probably) non-existant wlan file?
Sure:
merkur:~# ls -l /sys/devices/platform/asus-laptop/
insgesamt 0
---------- 1 root root 4096 10. Mai 16:23 bluetooth
lrwxrwxrwx 1 root root 0 10. Mai 16:23 bus -> ../../../bus/platform
---------- 1 root root 4096 10. Mai 16:23 display
lrwxrwxrwx 1 root root 0 10. Mai 16:23 driver -> ../../../bus/platform/drivers/asus-laptop
---------- 1 root root 4096 10. Mai 16:23 gps
-r--r--r-- 1 root root 4096 10. Mai 16:23 infos
---------- 1 root root 4096 10. Mai 16:23 ledd
---------- 1 root root 4096 10. Mai 16:23 ls_level
---------- 1 root root 4096 10. Mai 16:23 ls_switch
-r--r--r-- 1 root root 4096 10. Mai 16:23 modalias
drwxr-xr-x 2 root root 0 10. Mai 16:23 power
lrwxrwxrwx 1 root root 0 10. Mai 16:23 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 10. Mai 16:23 uevent
---------- 1 root root 4096 10. Mai 16:13 wlan
merkur:~# ls -l /sys/devices/platform/asus-laptop/
insgesamt 0
drwxr-xr-x 3 root root 0 10. Mai 16:23 asus-laptop
...
merkur:~# ls -l /sys/devices/platform/
insgesamt 0
...
drwxr-xr-x 8 root root 0 10. Mai 16:23 platform
...
merkur:~# ls -l /sys/devices/
insgesamt 0
...
drwxr-xr-x 9 root root 0 10. Mai 16:11 devices
...
merkur:~# ls -l /
insgesamt 1049708
...
drwxr-xr-x 11 root root 0 10. Mai 16:11 sys
...
merkur:~#
I should note that this laptop does NOT have wlan hardware.
Don't ask me how those weird permissions got there - this is
a standard Debian install having been upgraded all the way
from etch over the years.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
More information about the Pkg-acpi-devel
mailing list