projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libpcap: update to 1.9.0
[openwrt/staging/mkresin.git]
/
scripts
/
qemustart
diff --git
a/scripts/qemustart
b/scripts/qemustart
index 6c2254e3aff9ccd90733b4bf8fa09b45724d9d7a..5af93b9aedb3133b7b640c483b31cff4650b763a 100755
(executable)
--- a/
scripts/qemustart
+++ b/
scripts/qemustart
@@
-117,6
+117,7
@@
rand_mac() {
}
parse_args() {
}
parse_args() {
+ o_qemu_extra=()
while [ "$#" -gt 0 ]; do
case "$1" in
--kernel) o_kernel="$2"; shift 2 ;;
while [ "$#" -gt 0 ]; do
case "$1" in
--kernel) o_kernel="$2"; shift 2 ;;
@@
-131,7
+132,7
@@
parse_args() {
elif [ -z "$o_subtarget" ]; then
o_subtarget="$1"
else
elif [ -z "$o_subtarget" ]; then
o_subtarget="$1"
else
- o_qemu_extra
=("${o_qemu_extra[@]}"
"$1")
+ o_qemu_extra
+=(
"$1")
fi
shift
;;
fi
shift
;;
@@
-174,11
+175,10
@@
start_qemu_armvirt() {
if [ ! -f "$rootfs" -a -s "$rootfs.gz" ]; then
gunzip "$rootfs.gz"
fi
if [ ! -f "$rootfs" -a -s "$rootfs.gz" ]; then
gunzip "$rootfs.gz"
fi
- o_qemu_extra=( \
+ o_qemu_extra
+
=( \
"-drive" "file=$rootfs,format=raw,if=virtio" \
"-append" "root=/dev/vda rootwait" \
"-drive" "file=$rootfs,format=raw,if=virtio" \
"-append" "root=/dev/vda rootwait" \
- "${o_qemu_extra[@]}" \
- )
+ )
}
"$qemu_exe" -machine virt -cpu "$cpu" -nographic \
}
"$qemu_exe" -machine virt -cpu "$cpu" -nographic \