Hi all,
I have added some tools to my custom build of Gingerbread 2.3.4 for the BeagleBoard. Specifically, I have gotten the linux wireless 'iw' tool installed. I would like to run a command with iw and ifconfig from my init.rc, and have tried the obvious things without any luck.
The commands I want to run in sequence are:
iw phy phy0 interface add mesh0 type mp mesh_id mymesh
ifconfig mesh0 192.168.80.4
These commands work perfectly from the serial console (I have a beagleboard XM). The 2 things I have tried are in the init.rc file, to type the 2 commands as shown above, before the section where all the services are defined. That didn't work. The second thing I tried was to start 2 services as shown below.
# Try to automate mesh creation
service meshcreate /system/bin/iw phy phy0 interface add mesh0 type mp mesh_id mymesh
user meshcreate
group meshcreate
oneshot
service assignmeship /system/bin/ifconfig mesh0 192.168.80.4
user assignmeship
group assignmeship
oneshot
The ifconfig program comes standard with the sourcecode released by TI, and IW is something that I installed.
Thanks in advance.
Kiran