Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
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-web-393
Commits
6d27ca80
Commit
6d27ca80
authored
Dec 02, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if link exists
parent
8d0a92a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
eyesis4pi_interface.php
src/eyesis4pi/eyesis4pi_interface.php
+4
-3
No files found.
src/eyesis4pi/eyesis4pi_interface.php
View file @
6d27ca80
...
@@ -27,16 +27,17 @@ if (isset($_GET['cmd']))
...
@@ -27,16 +27,17 @@ if (isset($_GET['cmd']))
else
if
(
isset
(
$argv
[
1
]))
else
if
(
isset
(
$argv
[
1
]))
$cmd
=
$argv
[
1
];
$cmd
=
$argv
[
1
];
#hardcoded
#hardcoded
for eyesis4pi
$symlink
=
"/www/pages/ssd"
;
$symlink
=
"/www/pages/ssd"
;
$mountpoint
=
"/mnt/sda1"
;
$mountpoint
=
"/mnt/sda1"
;
switch
(
$cmd
){
switch
(
$cmd
){
case
"symlink"
:
case
"symlink"
:
symlink
(
$mountpoint
,
$symlink
);
if
(
is_link
(
$symlink
))
die
(
"already exists"
);
die
(
symlink
(
$mountpoint
,
$symlink
));
break
;
break
;
default
:
default
:
print
(
"nothing
is
done"
);
print
(
"nothing
has been
done"
);
}
}
?>
?>
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