
Receipt for package "hardware-ibm-6272"
# SliTaz package receipt. PACKAGE="hardware-ibm-6272" VERSION="1.0" CATEGORY="base-system" MAINTAINER="devel@slitaz.org" LICENSE="BSD" SHORT_DESC="IBM 300GL 6272/6282 (P75-233 ISA/PCI/USB/ETH desktop) hardware support" WEB_SITE="http://www.slitaz.org/" DEPENDS="isapnptools" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/init.d cat > $fs/etc/init.d/pnp.sh <<EOT #!/bin/sh . /etc/init.d/rc.functions echo -n "Switching on isa pnp ethernet card " # io 0x360..0x250 by 0x10, irq 15 12 11 10 9 7 6 5 4 3 for io in \$(seq 360 -10 250); do for irq in 15 12 11 10; do pnpdump | busybox awk "BEGIN {s=0} \\ /CONFIGURE CSC6040/ {s=1} { \\ if (s==0) print; \\ else if (/INT 0/) print \\"(INT 0 (IRQ \$irq (MODE +E)))\\"; \\ else if (/IO 0/) print \\"(IO 0 (SIZE 16) (BASE 0x0\$io) (CHECK))\\"; \\ else if (/ACT Y/) { s=0; print \\"(ACT Y)\\"} \\ else print \\ }" > /etc/isapnp.conf if isapnp /etc/isapnp.conf > /dev/null 2>&1 ; then modprobe cs89x0 io=0x\$io irq=\$irq > /dev/null 2>&1 break 2 fi done ; done status EOT chmod +x $fs/etc/init.d/pnp.sh } # Pre and post install commands for Tazpkg. pre_remove() { sed -i 's/pnp.sh //' "$1/etc/rcS.conf" } post_install() { grep pnp.sh "$1/etc/rcS.conf" || sed -i 's/RUN_SCRIPTS="/&pnp.sh /' "$1/etc/rcS.conf" }
6093 packages and 258600 files in current database (Wed Apr 23 16:49:15 2025)