# SliTaz package receipt. PACKAGE="hardware-ibm-6272" VERSION="1.0" CATEGORY="base-system" MAINTAINER="devel@slitaz.org" 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 < /etc/isapnp.conf if isapnp /etc/isapnp.conf > /dev/null 2>&1 ; then modprobe cs89x0 io=0x\$io irq=\$irq > /dev/null 2>&1 status="\\\\033[70G[ \\\\033[1;33mOK\\\\033[0;39m ]" break 2 fi done ; done echo -e "\$status" EOT chmod +x $fs/etc/init.d/pnp.sh } # Pre and post install commands for Tazpkg. post_install() { grep pnp.sh $1/etc/rcS.conf || sed -i 's/RUN_SCRIPTS="/&pnp.sh /' $1/etc/rcS.conf }