Skip to content

Commit

Permalink
#155 Reverted i2c-tools as required dependency because permissions error
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Jan 7, 2024
1 parent da273ec commit 2217263
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 2217263

Please sign in to comment.