Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
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-apps-camogm
Commits
d5039211
Commit
d5039211
authored
Mar 30, 2017
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change state file assignment
parent
f0587888
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
camogm_interface.php
src/camogmgui/camogm_interface.php
+6
-1
No files found.
src/camogmgui/camogm_interface.php
View file @
d5039211
...
@@ -74,6 +74,7 @@ $cmd_pipe = "/var/state/camogm_cmd";
...
@@ -74,6 +74,7 @@ $cmd_pipe = "/var/state/camogm_cmd";
$cmd_state
=
"/var/state/camogm.state"
;
$cmd_state
=
"/var/state/camogm.state"
;
$cmd_port
=
"3456"
;
$cmd_port
=
"3456"
;
$default_state
=
"/home/root/camogm.disk"
;
$default_state
=
"/home/root/camogm.disk"
;
$state_file
=
"/mnt/sda1/camogm.disk"
;
$start_str
=
"camogm -n "
.
$cmd_pipe
.
" -p "
.
$cmd_port
;
$start_str
=
"camogm -n "
.
$cmd_pipe
.
" -p "
.
$cmd_port
;
if
(
$cmd
==
"run_camogm"
)
if
(
$cmd
==
"run_camogm"
)
...
@@ -88,7 +89,11 @@ if ($cmd == "run_camogm")
...
@@ -88,7 +89,11 @@ if ($cmd == "run_camogm")
$p
=
(
array_filter
(
$arr
,
"low_daemon"
));
$p
=
(
array_filter
(
$arr
,
"low_daemon"
));
$check
=
implode
(
"<br />"
,
$p
);
$check
=
implode
(
"<br />"
,
$p
);
$state_file
=
get_state_path
();
//$state_file = get_state_path();
if
(
isset
(
$_GET
[
'state_file'
])){
$state_file
=
$_GET
[
'state_file'
];
}
$start_str
=
$start_str
.
" -s "
.
$state_file
;
$start_str
=
$start_str
.
" -s "
.
$state_file
;
if
(
strstr
(
$check
,
$start_str
))
if
(
strstr
(
$check
,
$start_str
))
...
...
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