projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d726878
)
scripts/qemustart: add notes on adding new options
author
Yousong Zhou
<yszhou4tech@gmail.com>
Fri, 26 Apr 2019 04:17:16 +0000
(
04:17
+0000)
committer
Yousong Zhou
<yszhou4tech@gmail.com>
Fri, 26 Apr 2019 13:09:33 +0000
(13:09 +0000)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
scripts/qemustart
patch
|
blob
|
history
diff --git
a/scripts/qemustart
b/scripts/qemustart
index 2d1f476dde8be2c4cb00d4dfafbde7679f131a7a..dbb8deddafd8093887d6dfcd37d5743a5e1ba48a 100755
(executable)
--- a/
scripts/qemustart
+++ b/
scripts/qemustart
@@
-124,6
+124,11
@@
parse_args() {
o_network=
o_qemu_extra=()
while [ "$#" -gt 0 ]; do
+ # Cmdline options for the script itself SHOULD try to be
+ # prefixed with two dashes to distinguish them from those for
+ # qemu executables.
+ #
+ # Also note that qemu accepts both --opt and -opt
case "$1" in
--kernel) o_kernel="$2"; shift 2 ;;
--rootfs) o_rootfs="$2"; shift 2 ;;