Skip to content

Commit

Permalink
Dynamically determing the script directory when copying the wpa_suppl…
Browse files Browse the repository at this point in the history
…icant.conf.original to accomodate installations under previous versions
  • Loading branch information
jasbur committed Jan 20, 2019
1 parent cb0ecff commit cdd8284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +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('cp ' + os.path.dirname(os.path.realpath(__file__)) + '/reset_device/static_files/wpa_supplicant.conf.default /etc/wpa_supplicant/wpa_supplicant.conf')
os.system('chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf')
os.system('mv /etc/wpa_supplicant/wpa_supplicant.conf.original /etc/wpa_supplicant/wpa_supplicant.conf 2>/dev/null')
os.system('rm -rf /etc/raspiwifi')
Expand Down

0 comments on commit cdd8284

Please sign in to comment.