# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kernel-mod eutils DESCRIPTION="The fsam7440 kernel module is needed for turning off the kill switch of Fujitsu-Siemens AMILO M7440 notebooks." HOMEPAGE="http://fsam7440.sourceforge.net/index2.html" SRC_URI="http://kent.dl.sourceforge.net/sourceforge/fsam7440/${P}.tar.bz2" LICENSE="GPL" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="" RDEPEND="net-wireless/ipw2200" src_compile() { unset ARCH emake || die } src_install() { kernel-mod_getversion if [ ${KV_MINOR} -gt 4 ] then KV_OBJ="ko" else KV_OBJ="o" fi insinto /lib/modules/${KV}/net doins fsam7440.${KV_OBJ} dodoc README INSTALL CHANGES } pkg_postinst() { kernel-mod_getversion if [ ${KV_MINOR} -gt 4 ] then KV_OBJ="ko" else KV_OBJ="o" fi einfo "Checking kernel module dependancies" test -r "${ROOT}/usr/src/linux/System.map" && \ depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV} echo einfo "You can load the module:" einfo "% modprobe fsam7400" echo einfo "To switch on your wifi card:" einfo "% echo 1 > /proc/fsam7440/radio" echo einfo "To switch off your wifi card:" einfo "% echo 0 > /proc/fsam7440/radio" }