Add files via upload
This commit is contained in:
21
factory-config.py
Normal file
21
factory-config.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/usr/env python
|
||||
|
||||
import time
|
||||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
|
||||
print 'Getting payload...'
|
||||
sys.stdout.flush()
|
||||
time.sleep(5)
|
||||
print 'Configuring Vestaboard...'
|
||||
sys.stdout.flush()
|
||||
time.sleep(5)
|
||||
print 'Writing...'
|
||||
sys.stdout.flush()
|
||||
with open("/home/pi/fg-test/stop-rainbow.sh", "a") as myfile:
|
||||
myfile.write("python /home/pi/fg-test/factory-provision.py")
|
||||
time.sleep(2)
|
||||
print 'Rebooting...'
|
||||
sys.stdout.flush()
|
||||
os.system('sudo shutdown -r now')
|
Reference in New Issue
Block a user