From 7f42489d3b2119002d1480df743da5c7407c7478 Mon Sep 17 00:00:00 2001 From: Kai-Chuan Hsieh Date: Thu, 15 Apr 2021 12:05:53 +0800 Subject: Fix: Correct path if i2c number is changed LP: #1922988 The i2c bus number might be changed after reboot. Get device path again if the file does not exist. --- units/touchpad/jobs.pxu | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/units/touchpad/jobs.pxu b/units/touchpad/jobs.pxu index bb6f596..794de79 100644 --- a/units/touchpad/jobs.pxu +++ b/units/touchpad/jobs.pxu @@ -228,7 +228,9 @@ id: touchpad/palm-rejection-firmware-labeling_{product_slug} requires: device.driver == 'hid-multitouch' estimated_duration: 5.0 command: - abs_caps=$(cat > 55)) support=$((tool_type_bit & 1)) @@ -236,8 +238,8 @@ command: exit 0 else echo "Touchapd info:" - cat