Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to disable wifi on boot #27

Open
needlestack opened this issue Oct 22, 2016 · 0 comments
Open

option to disable wifi on boot #27

needlestack opened this issue Oct 22, 2016 · 0 comments
Milestone

Comments

@needlestack
Copy link
Collaborator

needlestack commented Oct 22, 2016

for RACHEL Plus, from @spatiald

a starting point:

if (isset($_GET['wifi']))
    if ($_GET['wifi'] == "on") {
        echo "Turning WIFI ON... ";
        exec("/etc/WiFi_Setting.sh");
        exec("/bin/rm /root/rachel-scripts/disable_wifi");
    } else if ($_GET['wifi'] == "off") {
        echo "Turning WIFI OFF... ";
        exec("/sbin/ifconfig wlan0 down");
        exec("/bin/echo 'Wifi disabled.  Delete this file to re-enable.'", $output);
        file_put_contents('/root/rachel-scripts/disable_wifi', $output);
    }
    echo "Done.";
}

also must figure out for RACHEL Pi


@needlestack

Oh cool - I will do this. Although I think I'm going to make it so that it there are separate controls
for turning wifi on/off and disabling it entirely (even on reboot) -- what do you think?

@spatiald

Agree - maybe a checkbox that enables permanence? We also need the
repairRachelScripts() function to run that will add the check for the disable flag. Can you
run that if the permanence flag is set?

@needlestack needlestack added this to the v2.2.3 milestone Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant