added tdeckboot
This commit is contained in:
@@ -18,6 +18,15 @@ def lock_rootfs():
|
||||
if MCU_STORAGE:
|
||||
storage.remount("/", readonly=True)
|
||||
|
||||
# TODO: switch to buffered copying to avoid RAM overflow
|
||||
def copy(p1, p2):
|
||||
with open(p1, 'rb') as f1:
|
||||
content = f1.read()
|
||||
with open(p2, 'wb') as f2:
|
||||
f2.write(content)
|
||||
|
||||
cp = copy # shortcut export
|
||||
|
||||
# Some shortcut export bindings to corresponding os functions
|
||||
|
||||
sep = pathsep = os.sep
|
||||
|
||||
Reference in New Issue
Block a user