scripts/qemustart: add notes on adding new options

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
openwrt-19.07
Yousong Zhou 2019-04-26 04:17:16 +00:00
parent d726878546
commit c2fee615ce
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ parse_args() {
o_network= o_network=
o_qemu_extra=() o_qemu_extra=()
while [ "$#" -gt 0 ]; do 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 case "$1" in
--kernel) o_kernel="$2"; shift 2 ;; --kernel) o_kernel="$2"; shift 2 ;;
--rootfs) o_rootfs="$2"; shift 2 ;; --rootfs) o_rootfs="$2"; shift 2 ;;