Help runnning a script after Installing an activity from .xo
bert at freudenbergs.de
Wed Dec 17 19:11:55 EST 2008
On 18.12.2008, at 00:51, quozl at laptop.org wrote:
> On Wed, Dec 17, 2008 at 12:31:31PM +0530, shivaprasad javali wrote:
>> So I have to modify the /etc/sysconfig/modules/olpc-1.modules file so
>> that I ask the XO to load the OSS module when it boots.
> Why when it boots? Why not when the activity starts?
> import os
> os.system("/bin/su -c 'modprobe snd-pcm-oss' root")
An activity cannot become root. Activities do not run as user olpc.
- Bert -
More information about the Devel