diff options
Diffstat (limited to 'meta/packages/prism3-support')
-rw-r--r-- | meta/packages/prism3-support/files/hostap-fw-load | 20 | ||||
-rw-r--r-- | meta/packages/prism3-support/prism3-support_1.0.0.bb | 16 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/packages/prism3-support/files/hostap-fw-load b/meta/packages/prism3-support/files/hostap-fw-load new file mode 100644 index 0000000..00df1ef --- /dev/null +++ b/meta/packages/prism3-support/files/hostap-fw-load @@ -0,0 +1,20 @@ +#!/bin/sh + +if test -e /sbin/cardctl; then + CARDCTL=/sbin/cardctl +elif test -e /sbin/pccardctl; then + CARDCTL=/sbin/pccardctl +else + exit 0 +fi + +# 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/meta/packages/prism3-support/prism3-support_1.0.0.bb b/meta/packages/prism3-support/prism3-support_1.0.0.bb new file mode 100644 index 0000000..85f1391 --- /dev/null +++ b/meta/packages/prism3-support/prism3-support_1.0.0.bb @@ -0,0 +1,16 @@ +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>" +PACKAGE_ARCH = "all" +PR = "r2" + +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/ +} + |