# SliTaz package receipt. PACKED_SIZE="20.0K" UNPACKED_SIZE="56.0K" PACKAGE="module-3c509" VERSION="2.6.20" CATEGORY="base-system" GROUP="driver,ethernet" SHORT_DESC="Kernel module for the 3c509 (3com Etherlink III) driver" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="http://tiny.slitaz.org/" DEPENDS="busybox-net" WANTED="linux" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path export src=$WOK/$WANTED/source/linux-$VERSION export _pkg=$WOK/$WANTED/install path=lib/modules/$(ls $_pkg/lib/modules)/kernel mkdir -p $fs/$path $src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done } # Post install/remove commands for Tazpkg. post_install() { [ "$IRQ3C509" ] && IRQ3C509="|irq=${IRQ3C509// /,}" [ "$XCVR3C509" ] && XCVR3C509="|xcvr=$XCVR3C509" grep -qs "^${PACKAGE#*-}|" $1/modules || echo "${PACKAGE#*-}$IRQ3C509|debug=${DBG3C509:-0}$XCVR3C509|max_interrupt_work=${MAXE3C509:-10}" >> $1/modules } config_form() { cat <3Com Etherlink III (3c509, 3c509B) ISA/PnP Ethernet driver
IRQ
Tranceiver
Maximum events handled per interrupt
Debug
EOT }