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)

Last post by ldurgan
3 hours ago
Last post by sharon84
3 hours ago
Last post by medhurst.samanta
4 hours ago
Last post by margarete.gerhold
59 minutes ago
Last post by stanton.hailey
3 hours ago
Last post by hheathcote
1 hour ago
Last post by whitney83
4 hours ago