From 7e6d8f2fb799d197a112149f1faf1fbe1d29f7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Drahn=C3=ADk?= Date: Wed, 31 Jul 2024 23:57:29 +0200 Subject: [PATCH] #189 added missing check whether is installed tool i2ctransfer --- install_device_check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_device_check.sh b/install_device_check.sh index 8854de3..962efff 100644 --- a/install_device_check.sh +++ b/install_device_check.sh @@ -3,7 +3,7 @@ source non_sudo_check.sh # i2cdetect is /usr/sbin/i2cdetect and some distributions do not add sbin to $PATH (https://github.com/asus-linux-drivers/asus-numberpad-driver/issues/154) -if [[ $(type i2cdetect 2>/dev/null) ]]; then +if [[ $(type i2cdetect 2>/dev/null) ]] && [[ $(type i2ctransfer 2>/dev/null) ]]; then INTERFACES=$(for i in $(i2cdetect -l | grep DesignWare | sed -r "s/^(i2c\-[0-9]+).*/\1/"); do echo $i; done) if [ -z "$INTERFACES" ]; then @@ -43,5 +43,5 @@ if [[ $(type i2cdetect 2>/dev/null) ]]; then exit 1 fi else - echo "The i2cdetect tool not found to proceed initial test whether any i2c device react like NumberPad" + echo "The i2cdetect or i2ctransfer tool not found to proceed initial test whether any i2c device react like NumberPad" fi \ No newline at end of file