Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / misc-binary-only / prism3-firmware_1.8.3.oe
1 SECTION = "base"
2 DESCRIPTION = "Firmware for the Prism3 cards"
3 LICENSE = "Unknown"
4 PR = "r1"
5
6 SRC_URI = "http://www.red-bean.com/~proski/firmware/${PV}.tar.gz \
7            http://www.red-bean.com/~proski/firmware/primary.tar.gz"
8 S = "${WORKDIR}"
9
10 do_install() {
11         install -d ${D}/${sysconfdir}/pcmcia/
12         install -m 0644 primary/pm010102.hex ${D}/${sysconfdir}/pcmcia/
13         install -m 0644 1.8.3/rf010803.hex ${D}/${sysconfdir}/pcmcia/
14         cat >${D}/${sysconfdir}/pcmcia/README.prism3-firmware <<EOF
15 To make a prism3 card w/ downloadable firmware work, do the following:
16         0.) Install hostap-utils
17         1.) Add "needs_reset yes" and "needs_firmware hostap_fw_load" to
18             the proper interface in /etc/network/interfaces
19         2.) Add a shell skript w/ "ifdown <interface>" to /etc/apm/suspend.d
20         3.) Add a shell skript w/ "ifup <interface>" to /etc/apm/resume.d
21 EOF
22 }