# HG changeset patch # User tobaru # Date 1516957658 -32400 # Node ID fa68a049532a88f798093fc83da837e137a39d1d # Parent 2617849843ecdb554f6167990c61dc3282827854 qemu-system-arm wrapper diff -r 2617849843ec -r fa68a049532a qemu-system-arm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qemu-system-arm Fri Jan 26 18:07:38 2018 +0900 @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Quick'n'dirty qemu-system-arm wrapper +# +# This is a temporary wrapper script to enable +# qemu-system-arm 0.12.3 to be managed by libvirt 0.7.6 +# (Fedora 13 Alpha). To use it: +# 1. mv /usr/bin/qemu-system-arm /usr/bin/qemu-system-arm.bin +# 2. save this script as /usr/bin/qemu-system-arm with +# appropriate permissions +# +# Chris Tyler 2010-03-11 +# + +LOGFILE=/dev/null +# LOGFILE=/tmp/aaa.log + +ARGS="$(echo "$*"| \ + sed -e "s/pci.[0-9]*/pci/g" \ + -e "s/bus=scsi[^,]*//g" \ + -e "s/-vga cirrus//g" \ + -e "s/if=none,/if=scsi,/g" \ + -e "s/-device scsi-disk[^ ]*//g" \ + -e "s/-device rtl[^ ]*mac=\([a-fA-F0-9:]*\)[^ ]*/-net nic,macaddr=\1,vlan=0,name=nic.0/g" \ + -e "s/-device [^ ]*//g" \ +)" + +echo "Date: $(date)" >>$LOGFILE +echo "Original args: $ARGS" >>$LOGFILE +echo "Edited args: $ARGS" >>$LOGFILE + +/bin/qemu-system-arm.bin $ARGS + +RESULT=$? +echo "Result code: $RESULT" >>$LOGFILE +# (echo "ID: ";id) >>/tmp/qemu.log + +exit $?