Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tristan Cavelier
toolbox
Commits
f0bad898
Commit
f0bad898
authored
Jun 29, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete cros-gunzip-dd.py because it reboots the machine anyway
parent
d2114183
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
cros-gunzip-dd.py
cros-gunzip-dd.py
+0
-18
No files found.
cros-gunzip-dd.py
deleted
100644 → 0
View file @
d2114183
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Usage: cros-gunzip-dd.py SRC.gz DEST
It's a shortcut for `zcat SRC.gz | dd of=DEST`. Useful on nayuos because the
"dd" command may crash. Unlike "dd", this script does not writing
synchronously, you may want to wait for cache to be emptied after the copy.
You can still force your system to empty its caches by using `sync` command.
"""
import
sys
,
gzip
src
=
gzip
.
open
(
sys
.
argv
[
1
],
"rb"
)
dst
=
open
(
sys
.
argv
[
2
],
"wb"
)
while
True
:
buf
=
src
.
read
(
512
)
if
len
(
buf
)
==
0
:
break
dst
.
write
(
buf
)
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