Remove All Ads from XDA

How to enable Wi-Fi at boot with init.d and "svc wifi enable"?

101 posts
Thanks Meter: 17
By kentchristopher, Senior Member on 6th June 2014, 08:43 PM
Post Reply Email Thread
This is so simple I know it must be possible, and yet I've tried multiple things with no luck (believe me, I've searched).

I'm using a port of Cyamogenmod 7 on an old Sony Ericsson X10 Mini. There's an init.d folder present, so I can only assume init.d is working.

I can successfully enable wifi from terminal via:
svc wifi enable
Thus I figured an init.d script named '50wifion' in the init.d folder should do the trick:
svc wifi enable
No such luck. I've tried several different tactics, the latest being appending an existing init.d file '20userinit' with this:

/system/bin/sh /system/bin/ >/userinit.out 2>/userinit.err
Calling '' in /system/bin:
/system/bin/svc wifi enable
This not only fails to enable Wi-Fi, but there is no output in either file -- they're just blank.

Are certain commands not allowed at boot, period? I've tried adding 'sleep 20' in there with no luck. What am I missing?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes