Commit 740001b3 authored by Ren, Yongjie's avatar Ren, Yongjie Committed by Gleb Natapov
Browse files

x86-run: replace the deprecated 'fgrep' with 'grep -F'



Signed-off-by: default avatarYongjie Ren <yongjie.ren@intel.com>
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
parent ec3c77fb
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment