aboutsummaryrefslogtreecommitdiffstats
path: root/uap_hack/dreamplug_libertas
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-24 19:03:41 +0200
committerficus <ficus@robocracy.org>2012-09-24 19:03:41 +0200
commitf60f8656e75da356ddec2326e064fbe150a3ad8f (patch)
tree0a1d35a7bc132bfb75b0a43f7c013c2430179d7a /uap_hack/dreamplug_libertas
parentc574025e324a1daf23830f516d3b5063424e839b (diff)
downloadtorouter-f60f8656e75da356ddec2326e064fbe150a3ad8f.tar.gz
torouter-f60f8656e75da356ddec2326e064fbe150a3ad8f.zip
update uap_hack install script to build from qemu
Diffstat (limited to 'uap_hack/dreamplug_libertas')
-rwxr-xr-xuap_hack/dreamplug_libertas/install.sh17
-rwxr-xr-xuap_hack/dreamplug_libertas/install_3.2.0-3-kirkwood.sh16
-rwxr-xr-xuap_hack/dreamplug_libertas/install_3.2.9-kirkwood.sh16
3 files changed, 17 insertions, 32 deletions
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