esp8266/scripts/inisetup: Create default boot.py in filesystem.

Currently it pre-imports webrepl, but doesn't start it.
pull/2038/head
Paul Sokolovsky 2016-04-29 20:11:48 +03:00
rodzic 74f413bc60
commit 6ddd9f3e2b
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -37,4 +37,10 @@ def setup():
wifi()
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev, "")
with open("/boot.py", "w") as f:
f.write("""\
# This file is executed on every boot (including wake-boot from deepsleep)
import webrepl
#webrepl.start()
""")
return vfs