Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
my silly ass forgot to git pull
Browse files Browse the repository at this point in the history
  • Loading branch information
sneexy-boi committed Mar 15, 2024
2 parents a478c02 + d80ba89 commit 83f61be
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/recipes/amycatgirl/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ modules:
# Documentation: https://blue-build.org/reference/modules/rpm-ostree/
- from-file: common/amycatgirl/rpm-ostree.yml

# Install Huion's tabler driver and uDev rules
- type: script
scripts:
- huiondriver-setup.sh

# - Flatpaks -
# Flatpaks that will end up being installed out of the box on the system. Feel free to add anything here you'd
# want to be inside of flatpaks on your system.
Expand Down
32 changes: 32 additions & 0 deletions config/scripts/huiondriver-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

# Tell this script to exit if there are any errors.
# You should have this in every custom script, to ensure that your completed
# builds actually ran successfully without any errors!
set -oue pipefail

echo "Starting installation procedure..."

INSTALL_PATH="/opt/huion-driver"

mkdir $INSTALL_PATH
cd $INSTALL_PATH

echo "Set current working directory to $(pwd)"
echo "Downloading and unpacking the driver..."

wget -c "https://driverdl.huion.com/driver/Linux/HuionTablet_v15.0.0.89.202205241352.x86_64.tar.xz" -O - | tar -xJv

if [ -e "$INSTALL_PATH/install.sh" ] && [ -e "$INSTALL_PATH/uninstall.sh" ] && [ -d "$INSTALL_PATH/huion" ]; then
echo "Installation files exist! Continuing..."
else
echo "Could not find files required to install the driver. Aborting"
exit 1
fi

echo "Running install script..."

exec ./install.sh
wait

echo "The driver should be installed successfully!"

0 comments on commit 83f61be

Please sign in to comment.