summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtestusb.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/testusb.sh b/testusb.sh
new file mode 100755
index 0000000..bed799b
--- /dev/null
+++ b/testusb.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Copyright (C) 2021 Iru Cai <mytbk920423@gmail.com>
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# Test the live USB in QEMU, you need to run this script as root
+qemu-system-x86_64 -enable-kvm -cpu host -m 2G -drive "file=$1,format=raw"