diff --git a/install.sh b/install.sh index cca63ce..f78bf51 100755 --- a/install.sh +++ b/install.sh @@ -22,15 +22,15 @@ LOGS_INSTALL_LOG_FILE_PATH="$LOGS_DIR_PATH/$LOGS_INSTALL_LOG_FILE_NAME" PYTHON_REQUIRED_VERSION_FOR_LIB_PYASYNCORE="3.12.0" if [[ $(sudo apt-get install 2>/dev/null) ]]; then - sudo apt-get -y install ibus libevdev2 curl xinput python3-dev python3-libevdev python3-numpy python3-xlib python3-pyinotify libxml2-utils python3-smbus2 + sudo apt-get -y install ibus libevdev2 curl xinput i2c-tools python3-dev python3-libevdev python3-numpy python3-xlib python3-pyinotify libxml2-utils python3-smbus2 elif [[ $(sudo pacman -h 2>/dev/null) ]]; then # arch does not have header packages (python3-dev), headers are shipped with base? python package should contains almost latest version python3.* - sudo pacman --noconfirm --needed -S ibus libevdev curl xorg-xinput python python-libevdev python-numpy python-pyinotify python-xlib libxml2 python3-smbus2 + sudo pacman --noconfirm --needed -S ibus libevdev curl xorg-xinput i2c-tools python python-libevdev python-numpy python-pyinotify python-xlib libxml2 python3-smbus2 elif [[ $(sudo dnf help 2>/dev/null) ]]; then - sudo dnf -y install ibus libevdev curl xinput python3-devel python3-libevdev python3-numpy python3-inotify python3-xlib libxml2 python3-smbus2 + sudo dnf -y install ibus libevdev curl xinput i2c-tools python3-devel python3-libevdev python3-numpy python3-inotify python3-xlib libxml2 python3-smbus2 elif [[ $(sudo yum help 2>/dev/null) ]]; then # yum was replaced with newer dnf above - sudo yum --y install ibus libevdev curl xinput python3-devel python3-libevdev python3-numpy python3-inotify python3-xlib libxml2 python3-smbus2 + sudo yum --y install ibus libevdev curl xinput i2c-tools python3-devel python3-libevdev python3-numpy python3-inotify python3-xlib libxml2 python3-smbus2 else echo "Not detected package manager. Driver may not work properly because required packages have not been installed. Please create an issue (https://github.com/asus-linux-drivers/asus-numberpad-driver/issues)." fi @@ -41,7 +41,7 @@ LOGS_INSTALL_LOG_FILE_PATH="$LOGS_DIR_PATH/$LOGS_INSTALL_LOG_FILE_NAME" # check if the i2c-dev module is successfully loaded if [[ $? != 0 ]]; then - echo "i2c-dev module cannot be loaded" + echo "i2c-dev module cannot be loaded. Make sure you have installed i2c-tools package" exit 1 else echo "i2c-dev module loaded"