Skip to content

Commit

Permalink
Added some cosmetic fixes to the Initial Setup Script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasbur committed Feb 25, 2018
1 parent 8e6a251 commit 3da8b07
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion initial_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
def install_prereqs():
project_path = os.path.dirname(os.path.abspath(__file__))

os.system('clear')
os.system('apt update')
os.system('clear')
os.system('apt install python3 bundler libsqlite3-dev isc-dhcp-server hostapd libxml2-dev libxslt-dev -y')
Expand Down Expand Up @@ -83,9 +84,16 @@ def update_config_paths():
print()
sys.exit()

os.system('clear')
print()
print()
print("#####################################")
print("##### RaspiWiFi Setup Complete #####")
print("#####################################")
print()
print()
reboot_ans = input("Initial setup is complete. A reboot is required to start in WiFi configuration mode, would you like to do that now? (y/n): ")
print("Initial setup is complete. A reboot is required to start in WiFi configuration mode...")
reboot_ans = input("Would you like to do that now? (y/n): ")

if reboot_ans == 'y':
os.system('sudo reboot')

0 comments on commit 3da8b07

Please sign in to comment.