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
@@ -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