Commit 6ddd9f3e authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

Currently it pre-imports webrepl, but doesn't start it.
parent 74f413bc
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment