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
f05c3a2d
Commit
f05c3a2d
authored
Dec 14, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/var/hdd -> /mnt/sda1
parent
03fde964
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
camogm_interface.php
src/camogmgui/camogm_interface.php
+6
-6
No files found.
src/camogmgui/camogm_interface.php
View file @
f05c3a2d
...
@@ -221,12 +221,12 @@ else if ($cmd=="mount") { // mount media like HDD
...
@@ -221,12 +221,12 @@ else if ($cmd=="mount") { // mount media like HDD
if
(
isset
(
$_GET
[
'mountpoint'
]))
if
(
isset
(
$_GET
[
'mountpoint'
]))
$mountpoint
=
$_GET
[
'mountpoint'
];
$mountpoint
=
$_GET
[
'mountpoint'
];
else
else
$mountpoint
=
'/
var/hdd
'
;
$mountpoint
=
'/
mnt/sda1
'
;
exec
(
'mkdir '
.
$mountpoint
);
exec
(
'mkdir '
.
$mountpoint
);
//exec('mkdir /
var/hdd
');
//exec('mkdir /
mnt/sda1
');
exec
(
'mount '
.
$partition
.
" "
.
$mountpoint
);
exec
(
'mount '
.
$partition
.
" "
.
$mountpoint
);
//exec('mount /dev/hda1 /
var/hdd
');
//exec('mount /dev/hda1 /
mnt/sda1
');
xml_header
();
xml_header
();
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<"
.
$cmd
.
">"
;
echo
"<"
.
$cmd
.
">"
;
...
@@ -392,7 +392,7 @@ else
...
@@ -392,7 +392,7 @@ else
exec
(
'sync'
);
exec
(
'sync'
);
break
;
break
;
case
"file_rename"
:
case
"file_rename"
:
// Now requires full path (like "/
var/hdd
/test1.mov") for file_old
// Now requires full path (like "/
mnt/sda1
/test1.mov") for file_old
// and either a full path or just a filename for file_new
// and either a full path or just a filename for file_new
if
((
!
isset
(
$_GET
[
'file_old'
]))
||
(
!
isset
(
$_GET
[
'file_new'
])))
{
if
((
!
isset
(
$_GET
[
'file_old'
]))
||
(
!
isset
(
$_GET
[
'file_new'
])))
{
echo
"wrong arguments"
;
echo
"wrong arguments"
;
...
@@ -495,7 +495,7 @@ else
...
@@ -495,7 +495,7 @@ else
$dir_name
=
$_GET
[
'name'
];
$dir_name
=
$_GET
[
'name'
];
if
(
isset
(
$dir_name
)
&&
((
$dir_name
!=
""
)
||
(
$dir_name
!=
" "
)))
if
(
isset
(
$dir_name
)
&&
((
$dir_name
!=
""
)
||
(
$dir_name
!=
" "
)))
{
{
exec
(
'mkdir /
var/hdd
/'
.
$dir_name
);
exec
(
'mkdir /
mnt/sda1
/'
.
$dir_name
);
echo
"done"
;
echo
"done"
;
break
;
break
;
}
}
...
@@ -517,7 +517,7 @@ else
...
@@ -517,7 +517,7 @@ else
echo
"no HDD mounted"
;
echo
"no HDD mounted"
;
break
;
break
;
case
"create_symlink"
:
case
"create_symlink"
:
//exec('ln -s /
var/hdd
/mnt/flash/html/hdd');
//exec('ln -s /
mnt/sda1
/mnt/flash/html/hdd');
if
(
isset
(
$_GET
[
'mountpoint'
]))
$mountpoint
=
$_GET
[
'mountpoint'
];
if
(
isset
(
$_GET
[
'mountpoint'
]))
$mountpoint
=
$_GET
[
'mountpoint'
];
else
$mountpoint
=
"/mnt/sda1"
;
else
$mountpoint
=
"/mnt/sda1"
;
...
...
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