Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
8aebf36a
Commit
8aebf36a
authored
Jun 25, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
link to /tmp
parent
c3f1e194
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
apps-web_1.0.bb
recipes-core/apps-web/apps-web_1.0.bb
+1
-0
camogm.php
recipes-core/apps-web/files/camogm.php
+3
-2
No files found.
recipes-core/apps-web/apps-web_1.0.bb
View file @
8aebf36a
...
@@ -48,6 +48,7 @@ do_install_append() {
...
@@ -48,6 +48,7 @@ do_install_append() {
install -m 0644 ${WORKDIR}/camogm.html ${D}/www/pages
install -m 0644 ${WORKDIR}/camogm.html ${D}/www/pages
install -m 0644 ${WORKDIR}/camogm.js ${D}/www/pages
install -m 0644 ${WORKDIR}/camogm.js ${D}/www/pages
install -m 0644 ${WORKDIR}/camogm.php ${D}/www/pages
install -m 0644 ${WORKDIR}/camogm.php ${D}/www/pages
ln -sf /tmp/video/ ${D}/www/pages/video
}
}
PACKAGES = " apps-web"
PACKAGES = " apps-web"
...
...
recipes-core/apps-web/files/camogm.php
View file @
8aebf36a
...
@@ -71,7 +71,8 @@ if ($cmd=="create_symlink"){
...
@@ -71,7 +71,8 @@ if ($cmd=="create_symlink"){
if
(
isset
(
$_GET
[
'path'
]))
{
if
(
isset
(
$_GET
[
'path'
]))
{
$path
=
$_GET
[
'path'
];
$path
=
$_GET
[
'path'
];
if
(
is_dir
(
$path
)){
if
(
is_dir
(
$path
)){
exec
(
"ln -sf
$path
/www/pages/video;sync"
);
//exec("ln -sf $path /www/pages/video;sync");
exec
(
"ln -sf
$path
/tmp/video"
);
}
}
}
}
}
}
...
@@ -88,7 +89,7 @@ if ($cmd=="start"){
...
@@ -88,7 +89,7 @@ if ($cmd=="start"){
fprintf
(
$fcmd
,
"exit;
\n
"
);
fprintf
(
$fcmd
,
"exit;
\n
"
);
exec
(
'sync'
);
exec
(
'sync'
);
}
else
if
(
$cmd
==
"default"
){
}
else
if
(
$cmd
==
"default"
){
fprintf
(
$fcmd
,
"format=mov;exif=0;prefix=/mnt/sda1/;
\n
"
);
fprintf
(
$fcmd
,
"format=mov;exif=0;prefix=/
tmp/
mnt/sda1/;
\n
"
);
}
else
{
}
else
{
fprintf
(
$fcmd
,
"
$cmd
\n
"
);
fprintf
(
$fcmd
,
"
$cmd
\n
"
);
//exec('sync');
//exec('sync');
...
...
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