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

Currently it pre-imports webrepl, but doesn't start it.
This commit is contained in:
Paul Sokolovsky 2016-04-29 20:11:48 +03:00
parent 74f413bc60
commit 6ddd9f3e2b
1 changed files with 6 additions and 0 deletions

View File

@ -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