@@ -3,12 +3,12 @@
qemukvm="${QEMU:-qemu-kvm}"
qemusystem="${QEMU:-qemu-system-x86_64}"
if
- ${qemukvm} -device '?' 2>&1 | fgrep -e \"testdev\" -e \"pc-testdev\" > /dev/null;
+ ${qemukvm} -device '?' 2>&1 | grep -F -e \"testdev\" -e \"pc-testdev\" > /dev/null;
then
qemu="${qemukvm}"
else
if
- ${qemusystem} -device '?' 2>&1 | fgrep -e \"testdev\" -e \"pc-testdev\" > /dev/null;
+ ${qemusystem} -device '?' 2>&1 | grep -F -e \"testdev\" -e \"pc-testdev\" > /dev/null;
then
qemu="${qemusystem}"
else
@@ -18,7 +18,7 @@ else
fi
if
- ${qemu} -device '?' 2>&1 | fgrep pci-testdev > /dev/null;
+ ${qemu} -device '?' 2>&1 | grep -F "pci-testdev" > /dev/null;
then
pci_testdev="-device pci-testdev"
else
@@ -26,7 +26,7 @@ else
fi
if
- ${qemu} -device '?' 2>&1 | fgrep "pc-testdev" > /dev/null;
+ ${qemu} -device '?' 2>&1 | grep -F "pc-testdev" > /dev/null;
then
pc_testdev="-device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4"
else
x86-run: replace the deprecated 'fgrep' with 'grep -F'. Signed-off-by: Yongjie Ren <yongjie.ren@intel.com> --- x86-run | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)