Skip to content

Instantly share code, notes, and snippets.

@amok
Last active December 11, 2015 19:08
Show Gist options
  • Save amok/4646279 to your computer and use it in GitHub Desktop.
Save amok/4646279 to your computer and use it in GitHub Desktop.
Install psmouse alps drivers
#!/bin/sh
if [ "$(id -u)" != "0" ]; then
echo "$0 must be run as root"
exit 1
fi
echo 'Internet required for this to work'
cd ~
apt-get update
apt-get -y install build-essential linux-headers-generic linux-headers-`uname -r`
echo "Downloading drivers...\n";
wget -O- http://goo.gl/2G9CF | tar jx;
echo "Running install script...\n";
cd psmouse-alps;
pwd;
ls
exec ./install_alps.sh;
echo "Removing driver temp directory...\n";
rm -rf psmouse-alps
echo "Done\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment