Commit 8aebf36a authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

link to /tmp

parent c3f1e194
......@@ -48,6 +48,7 @@ do_install_append() {
install -m 0644 ${WORKDIR}/camogm.html ${D}/www/pages
install -m 0644 ${WORKDIR}/camogm.js ${D}/www/pages
install -m 0644 ${WORKDIR}/camogm.php ${D}/www/pages
ln -sf /tmp/video/ ${D}/www/pages/video
}
PACKAGES = " apps-web"
......
......@@ -71,7 +71,8 @@ if ($cmd=="create_symlink"){
if (isset($_GET['path'])) {
$path = $_GET['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"){
fprintf($fcmd,"exit;\n");
exec('sync');
}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{
fprintf($fcmd,"$cmd\n");
//exec('sync');
......
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