Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-tools-x393
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-tools-x393
Commits
1f08a4a1
Commit
1f08a4a1
authored
Feb 11, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
downloading for eyesis4pi
parent
e464f8c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
int_ssd_download.py
int_ssd_download.py
+8
-0
No files found.
int_ssd_download.py
View file @
1f08a4a1
...
...
@@ -99,6 +99,10 @@ if len(cams)==0:
pc
=
x393
.
PC
()
# ssd to camera for all
for
cam
in
cams
:
cam
[
'obj'
]
.
ssd_to_camera
()
# get raw partitions
for
cam
in
cams
:
d
=
cam
[
'obj'
]
.
first_found_raw_partition_name
()
...
...
@@ -124,6 +128,7 @@ all_downloaded = False
for
i
in
range
(
len
(
cams
)):
raw_input
(
bcolors
.
OKGREEN
+
"Connect camera (eSATA) to PC (eSATA/SATA). Press Enter to continue..."
+
bcolors
.
ENDC
)
proceed_to_next
=
False
t
=
0
while
not
all_downloaded
:
plist
=
pc
.
list_partitions
()
...
...
@@ -132,11 +137,14 @@ for i in range(len(cams)):
if
d
==
p
[
0
]:
pc
.
download
(
args
.
dest
,
"/dev/"
+
p
[
1
],
args
.
bs
,
args
.
bc
,
args
.
skip
,
args
.
n
)
dirs
.
remove
(
d
)
proceed_to_next
=
True
if
len
(
dirs
)
!=
0
:
print
(
"wait for the next ssd"
)
else
:
all_downloaded
=
True
break
if
proceed_to_next
:
break
print
(
"Waiting for disks to show up:"
)
print
(
dirs
)
t
=
t
+
1
...
...
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