Commit 9e7fd997 authored by Rostislav Spinar's avatar Rostislav Spinar
Browse files

setter: fix setter bootpart flag

parent c50a23f0
......@@ -309,7 +309,7 @@ def touch(path):
:param name: Path
:type name: str
"""
"""
with open(path, 'a'):
os.utime(path, None)
......@@ -393,7 +393,9 @@ def main():
# copy default cfg to enable restore function
backup_configuration()
# create flag, do not run again
# create flag, not to run again
if not os.path.isdir("/data/setter"):
os.makedirs("/data/setter")
touch("/data/setter/bootpart")
# disable wlan0 completely, only for certification if needed, user can enable wifi on its own by webapp
......
Markdown is supported
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