summaryrefslogtreecommitdiff
path: root/hostap
diff options
context:
space:
mode:
authorBruno Randolf <br1@subnet.at>2004-10-15 15:27:54 +0000
committerBruno Randolf <br1@subnet.at>2004-10-15 15:27:54 +0000
commit53744b0ffd779b7923a4edf4f8665e18726fafc6 (patch)
treef606755505d253118ca598e3e5cf627f0d5b4556 /hostap
parentdf40b0bc2a4e8c0e23a23a300fa8d410621136fb (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into null.(none):/data/mtx/oe/oe.write/packages 2004/10/15 17:27:21+02:00 (none)!br1 mtx-1 and nylon updates 2004/10/15 17:25:12+02:00 (none)!br1 autoload hostap_pci on mtx-1 BKrev: 416fec7akNTy9S4XNbGWyEzJ1NRUZw
Diffstat (limited to 'hostap')
-rw-r--r--hostap/hostap-modules_0.2.5.oe22
1 files changed, 19 insertions, 3 deletions
diff --git a/hostap/hostap-modules_0.2.5.oe b/hostap/hostap-modules_0.2.5.oe
index 452e43a928..bbb3850076 100644
--- a/hostap/hostap-modules_0.2.5.oe
+++ b/hostap/hostap-modules_0.2.5.oe
@@ -15,8 +15,6 @@ S = "${WORKDIR}/hostap-driver-${PV}"
inherit module
-# Hack Alert :D
-ARCH_mipsel = "mips"
EXTRA_OEMAKE = "EXTRA_CFLAGS='-DPRISM2_NON_VOLATILE_DOWNLOAD'"
NET_MODULES = "hostap.o hostap_pci.o hostap_crypt_ccmp.o hostap_crypt_tkip.o hostap_crypt_wep.o"
@@ -32,11 +30,29 @@ do_install() {
install -m 0644 driver/modules/hostap_cs.o ${D}/lib/modules/${KERNEL_VERSION}/pcmcia/
install -m 0644 driver/etc/hostap_cs.conf ${D}/${sysconfdir}/pcmcia/hostap_cs.conf
cat ${WORKDIR}/hostap_cs.conf >>${D}/${sysconfdir}/pcmcia/hostap_cs.conf
+
+ if [ "${MACHINE}" = "mtx-1" ]; then
+ install -d ${D}/etc/modutils
+ echo "hostap_pci" > ${D}/etc/modutils/hostap
+ fi
+}
+
+pkg_postinst_hostap-modules-pci() {
+#!/bin/sh
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+update-modules || true
+}
+
+pkg_postrm_hostap-modules-pci() {
+#!/bin/sh
+update-modules || true
}
PACKAGES = "hostap-modules-cs hostap-modules-pci hostap-modules"
FILES_hostap-modules-cs = "/lib/modules/${KERNEL_VERSION}/pcmcia/ /${sysconfdir}/pcmcia/"
-FILES_hostap-modules-pci = "/lib/modules/${KERNEL_VERSION}/net/hostap_pci.o"
+FILES_hostap-modules-pci = "/etc/modutils /lib/modules/${KERNEL_VERSION}/net/hostap_pci.o"
FILES_hostap-modules = "/lib/modules/"
RDEPENDS_hostap-modules-cs = "hostap-modules"
RDEPENDS_hostap-modules-pci = "hostap-modules"