Commit 261c0dc6 authored by Andrey Filippov's avatar Andrey Filippov

Made /var/volatile/state creation conditional

parent 10b773b4
......@@ -271,7 +271,8 @@ else:
else:
print("Port "+str(i)+": skip autowb")
if switch ['autocampars'] == 1:
shout("autocampars.php --init --ignore-revision")
# shout("autocampars.php --init --ignore-revision")
shout("autocampars.php --init")
#flips for eyesis head cams
if switch['eyesis']==1:
......@@ -296,7 +297,11 @@ else:
print("skip GPS")
# create directory for camogm pipes, symlink /var/state should already be in rootfs
shout("mkdir /var/volatile/state")
if not os.path.exists("/var/volatile/state"):
os.mkdir('/var/volatile/state')
else:
print ("/var/volatile/state already exists")
# start temperature monitor and let it control fan (set 'off' to disable fan control)
if switch['eyesis']!=0:
......
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