Skip to content

Commit 35a2101

Browse files
committed
Added a few extra sudo commands to the new reset library just to be safe.
1 parent 51d064d commit 35a2101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Reset Device/reset_lib.py.template

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import os
33
def reset_to_host_mode():
44
os.system('aplay [[project_dir]]/Reset\ Device/button_chime.wav')
55
os.system('sudo rm -f /etc/wpa_supplicant/wpa_supplicant.conf')
6-
os.system('rm -f /home/pi/Projects/RaspiWifi/tmp/*')
6+
os.system('sudo rm -f /home/pi/Projects/RaspiWifi/tmp/*')
77
os.system('sudo cp -r [[project_dir]]/Reset\ Device/static_files/dhcpd.conf /etc/dhcp/')
88
os.system('sudo cp -r [[project_dir]]/Reset\ Device/static_files/hostapd.conf /etc/hostapd/')
99
os.system('sudo cp -r [[project_dir]]/Reset\ Device/static_files/interfaces.aphost /etc/network/interfaces')
1010
os.system('sudo cp -r [[project_dir]]/Reset\ Device/static_files/isc-dhcp-server.aphost /etc/default/isc-dhcp-server')
11-
os.system('rm /etc/cron.raspiwifi/apclient_bootstrapper')
11+
os.system('sudo rm /etc/cron.raspiwifi/apclient_bootstrapper')
1212
os.system('sudo cp -r [[project_dir]]/Reset\ Device/static_files/aphost_bootstrapper /etc/cron.raspiwifi/')
1313
os.system('sudo reboot')

0 commit comments

Comments
 (0)