Skip to content

Commit

Permalink
doc: document run_boot_script
Browse files Browse the repository at this point in the history
  • Loading branch information
lavafroth committed Aug 12, 2023
1 parent 4626de8 commit 30fc09b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def api(request: Request):


async def run_boot_script():
"""
If a script with the name 'boot.dd' exists,
run it without user interaction on boot.
"""
boot_script = 'payloads/boot.dd'
if os.path.exists(boot_script):
run_script_file(boot_script)
Expand Down

0 comments on commit 30fc09b

Please sign in to comment.