git.annexia.org
/
libguestfs-talks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add tech introductions.
[libguestfs-talks.git]
/
2019-tech-introductions
/
custom.sh
diff --git a/2019-tech-introductions/custom.sh
b/2019-tech-introductions/custom.sh
new file mode 100755
(executable)
index 0000000..
48bdcb4
--- /dev/null
+++ b/
2019-tech-introductions/custom.sh
@@ -0,0
+1,13
@@
+#!/bin/bash -
+
+case "$1" in
+ get_size)
+ echo 1M ;;
+ pread)
+ for i in `seq 1 $(( $3/16 ))`; do
+ echo -ne 'HELLO BEIJING __'
+ done
+ ;;
+ *)
+ exit 2;;
+esac