aboutsummaryrefslogtreecommitdiffstats
path: root/uap_hack/dreamplug_libertas/install.sh
blob: 0046a5ad2107f451d36fdd94e2e4f6a5ba5edc90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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