From 66f133bf454bf0d803abf9785d73e30edb8ec995 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Thu, 8 Nov 2018 18:00:53 +0800 Subject: [PATCH] DM: Fix the typo error in checking the /dev/vbs_ipu file The /dev/vbs_ipu is used by the backend driver of IPU mediator on SOS kernel If the file of /dev/vbs_ipu exists, it indicates that IPU works in mediator mode. Other it will fall back to the pass-through mode. But the commit 969f7cf071 doesn't check the file of /dev/vbs_ipu correctly. It should be -e instead of -f. Tracked-on: https://github.com/projectacrn/acrn-hypervisor/issues/1373 Signed-off-by: Zhao Yakui Reviewed-by: Wu, BinBin --- devicemodel/samples/apl-mrb/launch_uos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/samples/apl-mrb/launch_uos.sh b/devicemodel/samples/apl-mrb/launch_uos.sh index 12d6a8eca..55abf33ee 100755 --- a/devicemodel/samples/apl-mrb/launch_uos.sh +++ b/devicemodel/samples/apl-mrb/launch_uos.sh @@ -6,7 +6,7 @@ kernel_version=$(uname -r | awk -F. '{ printf("%d.%d", $1,$2) }') ipu_passthrough=0 # Check the device file of /dev/vbs_ipu to determine the IPU mode -if [ ! -f "/dev/vbs_ipu" ]; then +if [ ! -e "/dev/vbs_ipu" ]; then ipu_passthrough=1 fi