I am just having the same issue, so I will use this thread instead of creating a new one ;-)
I would like to toggle Wifi on and off by executing a script for my app (a homemade dashboard launched through KFmon) for battery-saving purposes
I can easily disable Wifi with a script.
It looks like I can enable it. But it does not seem to connect to the available know wifi network. (Actually, what my log says is that the script is correctly executed, but the IP Adress remains 127.0.0.1)
I am using these scripts borrowed from koreader's sources:
wifidown.sh
wifiup.sh
I would like the wifiup.sh script to automatically connect to a wifi network, so that after its execution I can make my API calls with my app ;-)
Can anyone help me out ?
(Oh and I may have the same question with a script that would turn up and down brightness, if anyone has that, I can't find much documentation - I am new to progamming things which almost directly communicates with the hardware)