Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-init
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-init
Commits
261c0dc6
Commit
261c0dc6
authored
Nov 09, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made /var/volatile/state creation conditional
parent
10b773b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
init_elphel393.py
src/init_elphel393.py
+8
-3
No files found.
src/init_elphel393.py
View file @
261c0dc6
...
@@ -271,7 +271,8 @@ else:
...
@@ -271,7 +271,8 @@ else:
else
:
else
:
print
(
"Port "
+
str
(
i
)
+
": skip autowb"
)
print
(
"Port "
+
str
(
i
)
+
": skip autowb"
)
if
switch
[
'autocampars'
]
==
1
:
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
#flips for eyesis head cams
if
switch
[
'eyesis'
]
==
1
:
if
switch
[
'eyesis'
]
==
1
:
...
@@ -295,8 +296,12 @@ if switch['gps']==1:
...
@@ -295,8 +296,12 @@ if switch['gps']==1:
else
:
else
:
print
(
"skip GPS"
)
print
(
"skip GPS"
)
# create directory for camogm pipes, symlink /var/state should already be in rootfs
# 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)
# start temperature monitor and let it control fan (set 'off' to disable fan control)
if
switch
[
'eyesis'
]
!=
0
:
if
switch
[
'eyesis'
]
!=
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment