Exemplo n.º 1
0
    "Which port would you like to use for the Configuration Page? [default: 12345]: "
)
print()
ssl_enabled_choice = input(
    "Would you like to enable SSL during configuration mode \n(NOTICE: you will get a certificate ID error \nwhen connecting, but traffic will be encrypted) [y/N]?: "
)
os.system('clear')
print()
print()
install_ans = input("Are you ready to commit changes to the system? [y/N]: ")

if (install_ans.lower() == 'y'):
    setup_lib.install_prereqs()
    setup_lib.copy_configs(wpa_enabled_choice)
    setup_lib.update_main_config_file(entered_ssid, auto_config_choice,
                                      auto_config_delay, ssl_enabled_choice,
                                      server_port_choice, wpa_enabled_choice,
                                      wpa_entered_key)
else:
    print()
    print()
    print("===================================================")
    print("---------------------------------------------------")
    print()
    print("RaspiWiFi installation cancelled. Nothing changed...")
    print()
    print("---------------------------------------------------")
    print("===================================================")
    print()
    print()
    sys.exit()
Exemplo n.º 2
0
import os
import sys
import setup_lib


if os.getuid():
    sys.exit('You need root access to install!')


os.system('clear')
entered_ssid = ""
print()
server_port_choice = ""
print()
install_ans = "y"

if(install_ans.lower() == 'y'):
	#setup_lib.install_prereqs()
	setup_lib.copy_configs()
	setup_lib.update_main_config_file(entered_ssid, server_port_choice)
	#os.system('systemctl start raspiwifi.service')
else:
	print()
	sys.exit()

os.system('clear')
print()
os.system('rm -rf /home/logatec/RaspiWiFi/initialboot')
os.system('reboot')
Exemplo n.º 3
0
auto_config_choice = input(
    "Would you like to enable auto-reconfiguration mode (y/n)? [default: n]: ")
auto_config_delay = input(
    "How long of a delay would you like without an active connection before auto-reconfiguration triggers (seconds)? [default: 300]: "
)
os.system('clear')
print()
print()
install_ans = input(
    "Would you like to continue with the final installation at this point (This can take up to 5 minutes)? (y/n): "
)

if (install_ans == 'y'):
    setup_lib.install_prereqs()
    setup_lib.copy_configs()
    setup_lib.update_main_config_file(entered_ssid, auto_config_choice,
                                      auto_config_delay)
    setup_lib.post_install_procs()

else:
    print()
    print()
    print("===================================================")
    print("---------------------------------------------------")
    print()
    print("RaspiWiFi installation cancelled. Nothing changed...")
    print()
    print("---------------------------------------------------")
    print("===================================================")
    print()
    print()
    sys.exit()
Exemplo n.º 4
0
import setup_lib

if __name__ == "__main__":
    ssid = "AstroPlant Setup"
    wpa_enabled = "N"
    wpa_entered_key = "NO PASSWORD"
    auto_config = "N"
    auto_config_delay = "300"
    server_port = "80"
    ssl_enabled = "N"

    setup_lib.install_prereqs()
    setup_lib.copy_configs(wpa_enabled)
    setup_lib.update_main_config_file(ssid, auto_config, auto_config_delay,
                                      ssl_enabled, server_port, wpa_enabled,
                                      wpa_entered_key)