On 4/20/2014 4:50 PM, cecco wrote: > > It work fine if I enable it from command line after boot (logged as root) > with this command: > *root@beaglebone:/# echo BB-BONE-BRT-Tdl2 > > /sys/devices/bone_capemgr.8/slots* > > but I can't do that: > debian@beaglebone:~$ echo BB-BONE-BRT-Tdl2 > > /sys/devices/bone_capemgr.8/slots > -bash: /sys/devices/bone_capemgr.8/slots: Permission denied > or that > debian@beaglebone:~$ sudo echo BB-BONE-BRT-Tdl2 > > /sys/devices/bone_capemgr.8/slots > -bash: /sys/devices/bone_capemgr.8/slots: Permission denied
This is because the redirection happens in the shell as a normal user before sudo runs and elevates your permissions. You need to move the redirction into the sudo command, one option is: sudo su -c "echo BB-BONE-BRT-Tdl2 > /sys/devices/bone_capemgr.*/slots" -- Charles Steinkuehler char...@steinkuehler.net -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.