22 lines
455 B
Python
22 lines
455 B
Python
#!/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')
|