summaryrefslogtreecommitdiff
path: root/packages/prism3-support
diff options
context:
space:
mode:
Diffstat (limited to 'packages/prism3-support')
-rw-r--r--packages/prism3-support/.mtn2git_empty0
-rw-r--r--packages/prism3-support/files/.mtn2git_empty0
-rw-r--r--packages/prism3-support/files/hostap-fw-load12
-rw-r--r--packages/prism3-support/prism3-support_1.0.0.bb15
4 files changed, 27 insertions, 0 deletions
diff --git a/packages/prism3-support/.mtn2git_empty b/packages/prism3-support/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/prism3-support/.mtn2git_empty
diff --git a/packages/prism3-support/files/.mtn2git_empty b/packages/prism3-support/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/prism3-support/files/.mtn2git_empty
diff --git a/packages/prism3-support/files/hostap-fw-load b/packages/prism3-support/files/hostap-fw-load
index e69de29bb2..538a4a7836 100644
--- a/packages/prism3-support/files/hostap-fw-load
+++ b/packages/prism3-support/files/hostap-fw-load
@@ -0,0 +1,12 @@
+#!/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
+
diff --git a/packages/prism3-support/prism3-support_1.0.0.bb b/packages/prism3-support/prism3-support_1.0.0.bb
index e69de29bb2..762bd01e61 100644
--- a/packages/prism3-support/prism3-support_1.0.0.bb
+++ b/packages/prism3-support/prism3-support_1.0.0.bb
@@ -0,0 +1,15 @@
+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"
+
+SRC_URI = "file://hostap-fw-load"
+
+do_install() {
+ install -d ${D}${sysconfdir}/network/if-pre-up.d/
+ install -m 0755 ${WORKDIR}/hostap-fw-load ${D}${sysconfdir}/network/if-pre-up.d/
+}
+