aboutsummaryrefslogtreecommitdiffstats
path: root/uap_hack/dreamplug_libertas_3.2.9-kirkwood/install.sh
blob: 47d6902788697c80a6d0bf59ac0848ad69316ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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