summaryrefslogtreecommitdiff
path: root/packages/prism3-support
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-01-26 22:09:14 +0000
committerMichael Lauer <mickey@vanille-media.de>2005-01-26 22:09:14 +0000
commitac3c70b093d290a29d1d4c1cee3b8e9537d261e1 (patch)
tree8b88131eaa89494dd12be8b54ff0268d42cfbe2c /packages/prism3-support
parent99326b245435839fb8c3b18689c155b579489c8f (diff)
prism3-support: fix typos
BKrev: 41f8150akkCHGypxno3IWjbw1pcNcw
Diffstat (limited to 'packages/prism3-support')
-rw-r--r--packages/prism3-support/prism3-support_0.1.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/prism3-support/prism3-support_0.1.bb b/packages/prism3-support/prism3-support_0.1.bb
index e69de29bb2..dface76a56 100644
--- a/packages/prism3-support/prism3-support_0.1.bb
+++ b/packages/prism3-support/prism3-support_0.1.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "meta-package for prism3 support through ifupdown and hostap_fw_load"
+SECTION = "base"
+LICENSE = "GPL"
+DEPENDS = "prism3-firmware hostap-utils"
+RDEPENDS = "prism3-firmware hostap-utils"
+MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
+PR = "r0"
+
+do_install() {
+ install -d ${D}/${sysconfdir}/network/if-pre-up.d/
+ cat >${D}/${sysconfdir}/network/if-pre-up.d/hostap-fw-load <<EOF
+#!/bin/sh
+
+# Special case for prism3 cards needing firmware upload
+# Add more known manfids, if necessary
+
+if [ `cardctl info|grep "d601,0010\|d601,0101"` ]; then
+ $IWPRIV "$IFACE" reset 1
+ hostap_fw_load "$IFACE"
+fi
+
+# lets hope that run-parts obeys the order :D
+EOF
+ chmod a+rx ${D}/${sysconfdir}/network/if-pre-up.d/hostap-fw-load
+}
+