Disable wifi from userland

I'm using a chrooted debian within Android on a jb tablet. I would like to enable and disable wifi from a cronjob within debian. Is it possible to do it with the help from the sys or the proc filesystem?
I'm also thinking of writing a small utility in c to do the job so i'm looking for the c equivalent of the java wifimanager.wifisetenabled(). Is it a possible solution?

Cheers

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Unknown issue
Started by lernser
Last post by carter.rigoberto
1 hour ago
Last post by kris.keely
3 hours ago
Last post by skye78
1 hour ago
Phone issue
Started by hcollier
Last post by vreichel
2 hours ago
Last post by pollich.deonte
3 hours ago
Last post by edward.kunde
2 hours ago
Last post by pupton
1 hour ago
Last post by garrison.wilderman
4 hours ago