summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}
+