From d03fbcffd1931e4a7d974aff2a10de8300984fa1 Mon Sep 17 00:00:00 2001 From: Igor Moura Date: Mon, 23 Jan 2017 09:44:17 -0300 Subject: [PATCH] Updated install script Made the script fetch the latest headers from the official repos --- utils/install.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/utils/install.sh b/utils/install.sh index 76827ee..e32879c 100755 --- a/utils/install.sh +++ b/utils/install.sh @@ -14,15 +14,11 @@ else echo "Installing required dependencies" sudo apt-get install -y --force-yes dkms cpp-4.7 gcc-4.7 git joystick || { echo "ERROR : Unable to install required dependencies" && exit 1 ;} - echo "Downloading current kernel headers" - wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-`uname -r`_`uname -r`-2_armhf.deb || - { echo "ERROR : Unable to find kernel headers" && exit 1 ;} - echo "Installing current kernel headers" - sudo dpkg -i linux-headers-`uname -r`_`uname -r`-2_armhf.deb || + echo "Downloading and installing current kernel headers" + sudo apt-get install -y --force-yes raspberrypi-kernel-headers || { echo "ERROR : Unable to install kernel headers" && exit 1 ;} - rm linux-headers-`uname -r`_`uname -r`-2_armhf.deb echo "Downloading mk_arcade_joystick_rpi 0.1.4" - wget https://github.com/digitalLumberjack/mk_arcade_joystick_rpi/releases/download/v0.1.4/mk-arcade-joystick-rpi-0.1.4.deb || + wget https://github.com/recalbox/mk_arcade_joystick_rpi/releases/download/v0.1.4/mk-arcade-joystick-rpi-0.1.4.deb || { echo "ERROR : Unable to find mk_arcade_joystick_package" && exit 1 ;} echo "Installing mk_arcade_joystick_rpi 0.1.4" sudo dpkg -i mk-arcade-joystick-rpi-0.1.4.deb || @@ -30,6 +26,5 @@ else echo "Installation OK" echo "Load the module with 'sudo modprobe mk_arcade_joystick_rpi map=1' for 1 joystick" echo "or with 'sudo modprobe mk_arcade_joystick_rpi map=1,2' for 2 joysticks" - echo "See https://github.com/digitalLumberjack/mk_arcade_joystick_rpi#loading-the-driver for more details" -fi - + echo "See https://github.com/recalbox/mk_arcade_joystick_rpi#loading-the-driver for more details" +fi \ No newline at end of file