# SliTaz package receipt. PACKED_SIZE="8.0K" UNPACKED_SIZE="8.0K" PACKAGE="hardware-ibm-6272" VERSION="1.0" CATEGORY="meta" GROUP="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 module-cs89x0" SUGGESTED="module-serial module-lp module-floppy module-ide module-usb-storage module-usblp" # Post message when installing. post_install() { [ -s $1/etc/init.d/pnp.sh ] || cat > $1/etc/init.d/pnp.sh <> $1/etc/init.d/pnp.sh < /etc/isapnp.conf.base for io in \$(seq 360 -10 250); do for irq in IRQ_CS89X0_LIST; do 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.base > /etc/isapnp.conf grep CSC6040 /etc/isapnp.conf || break 2 if isapnp /etc/isapnp.conf ; then modprobe cs89x0 io=0x\$io irq=\$irq break 2 fi done ; done > /dev/null 2>&1 && rm -f /etc/isapnp.conf.base status EOT grep -q '^# CONFIG_PRINTK is not set' $1/boot/config && sed -i '/Switching on/d' $1/etc/init.d/pnp.sh grep pnp.sh $1/etc/rcS.conf || sed -i 's/EARLY_RUN_SCRIPTS="/&pnp.sh /' $1/etc/rcS.conf list="" for i in $IRQ_CS89X0_LIST ; do case " 15 12 11 10 9 7 6 5 4 3 " in *\ $i\ *) list="$list $i" esac done sed -i "s/ IRQ_CS89X0_LIST/${list:- 15 12 11 10}/" $1/etc/init.d/pnp.sh sed -i 's/cs89x0[^ "]* //' $1/etc/rcS.conf sed -i '/rm -f .sbin.*pnp/d' $1/etc/init.d/pnp.sh [ "$CS89X0_WIPEPNP" = "on" ] && echo 'rm -f /sbin/pnpdump /sbin/isapnp /etc/isapnp.conf' >> $1/etc/init.d/pnp.sh } config_form() { cat < Allowed IRQ for the Ethernet driver cs89x0 Remove PNP binaries after use
EOT }