Skip to content

Commit

Permalink
Added a default wpa_supplicant.conf and code to copy it
Browse files Browse the repository at this point in the history
  • Loading branch information
jasbur committed Jan 20, 2019
1 parent 2263753 commit c79cc29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/reset_device/static_files/wpa_supplicant.conf.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
1 change: 1 addition & 0 deletions uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
if (uninstall_answer.lower() == "y"):
print('Uninstalling RaspiWiFi from your system...')

os.system('cp /usr/lib/raspiwifi/reset_device/static_files/wpa_supplicant.conf.default /etc/wpa_supplicant/wpa_supplicant.conf')
os.system('rm -rf /etc/raspiwifi')
os.system('rm -rf /usr/lib/raspiwifi')
os.system('rm -rf /etc/cron.raspiwifi')
Expand Down

0 comments on commit c79cc29

Please sign in to comment.