From f60f8656e75da356ddec2326e064fbe150a3ad8f Mon Sep 17 00:00:00 2001 From: ficus Date: Mon, 24 Sep 2012 19:03:41 +0200 Subject: update uap_hack install script to build from qemu --- uap_hack/dreamplug_libertas/install.sh | 17 +++++++++++++++++ uap_hack/dreamplug_libertas/install_3.2.0-3-kirkwood.sh | 16 ---------------- uap_hack/dreamplug_libertas/install_3.2.9-kirkwood.sh | 16 ---------------- 3 files changed, 17 insertions(+), 32 deletions(-) create mode 100755 uap_hack/dreamplug_libertas/install.sh delete mode 100755 uap_hack/dreamplug_libertas/install_3.2.0-3-kirkwood.sh delete mode 100755 uap_hack/dreamplug_libertas/install_3.2.9-kirkwood.sh (limited to 'uap_hack') diff --git a/uap_hack/dreamplug_libertas/install.sh b/uap_hack/dreamplug_libertas/install.sh new file mode 100755 index 0000000..0046a5a --- /dev/null +++ b/uap_hack/dreamplug_libertas/install.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +if [ -n "$1" ] +then + kernelversion=$1 +else + echo "Need to specify a kernel version!" > /dev/stderr + exit 1 +fi + +mkdir -p /lib/modules/$kernelversion/kernel/drivers/net/wireless/libertas_uap +cp uap8xxx.ko-$kernerlversion /lib/modules/$kernelversion/kernel/drivers/net/wireless/libertas_uap/uap8xxx.ko +depmod -a +cp -r firmware/mrvl /lib/firmware/mrvl +cp modprobe_libertas_uap.conf /etc/modprobe.d/libertas_uap diff --git a/uap_hack/dreamplug_libertas/install_3.2.0-3-kirkwood.sh b/uap_hack/dreamplug_libertas/install_3.2.0-3-kirkwood.sh deleted file mode 100755 index 2078d1a..0000000 --- a/uap_hack/dreamplug_libertas/install_3.2.0-3-kirkwood.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -set -e - -if ! [ `uname -r` = "3.2.0-3-kirkwood" ] -then - echo "Got: `uname -r`, need 3.2.0-3-kirkwood" - echo "Wrong kernel version, binary module won't work. Try a source install?" - exit 1 -fi - -mkdir /lib/modules/$(uname -r)/kernel/drivers/net/wireless/libertas_uap -cp uap8xxx.ko-$(uname -r) /lib/modules/$(uname -r)/kernel/drivers/net/wireless/libertas_uap -depmod -a -cp -r firmware/mrvl /lib/firmware/mrvl -cp modprobe_libertas_uap.conf /etc/modprobe.d/libertas_uap diff --git a/uap_hack/dreamplug_libertas/install_3.2.9-kirkwood.sh b/uap_hack/dreamplug_libertas/install_3.2.9-kirkwood.sh deleted file mode 100755 index 47d6902..0000000 --- a/uap_hack/dreamplug_libertas/install_3.2.9-kirkwood.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -set -e - -if ! [ `uname -r` = "3.2.9-kirkwood" ] -then - echo "Got: `uname -r`, need 3.2.9-kirkwood" - echo "Wrong kernel version, binary module won't work. Try a source install?" - exit 1 -fi - -mkdir /lib/modules/$(uname -r)/kernel/drivers/net/wireless/libertas_uap -cp uap8xxx.ko-$(uname -r) /lib/modules/$(uname -r)/kernel/drivers/net/wireless/libertas_uap -depmod -a -cp -r firmware/mrvl /lib/firmware/mrvl -cp modprobe_libertas_uap.conf /etc/modprobe.d/libertas_uap -- cgit v1.2.3