wok annotate hardware-ibm-6272/receipt @ rev 23445

updated powertop again (2.0 -> 2.11)
author Hans-G?nter Theisgen
date Thu Apr 02 16:17:16 2020 +0100 (2020-04-02)
parents 7d5789c51e7e
children
rev   line source
pascal@11552 1 # SliTaz package receipt.
pascal@11552 2
pascal@11552 3 PACKAGE="hardware-ibm-6272"
pascal@11552 4 VERSION="1.0"
pascal@11552 5 CATEGORY="base-system"
pascal@11552 6 MAINTAINER="devel@slitaz.org"
pascal@15215 7 LICENSE="BSD"
pascal@11552 8 SHORT_DESC="IBM 300GL 6272/6282 (P75-233 ISA/PCI/USB/ETH desktop) hardware support"
pascal@11552 9 WEB_SITE="http://www.slitaz.org/"
pascal@11552 10
pascal@11552 11 DEPENDS="isapnptools"
pascal@11552 12
pascal@11552 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11552 14 genpkg_rules()
pascal@11552 15 {
pascal@11552 16 mkdir -p $fs/etc/init.d
pascal@11552 17 cat > $fs/etc/init.d/pnp.sh <<EOT
pascal@11552 18 #!/bin/sh
pascal@11552 19
pascal@17847 20 . /etc/init.d/rc.functions
pascal@17847 21
pascal@11552 22 echo -n "Switching on isa pnp ethernet card "
pascal@11552 23 # io 0x360..0x250 by 0x10, irq 15 12 11 10 9 7 6 5 4 3
pascal@11552 24 for io in \$(seq 360 -10 250); do for irq in 15 12 11 10; do
pascal@11552 25 pnpdump | busybox awk "BEGIN {s=0} \\
pascal@11552 26 /CONFIGURE CSC6040/ {s=1} { \\
pascal@11552 27 if (s==0) print; \\
pascal@11552 28 else if (/INT 0/) print \\"(INT 0 (IRQ \$irq (MODE +E)))\\"; \\
pascal@11552 29 else if (/IO 0/) print \\"(IO 0 (SIZE 16) (BASE 0x0\$io) (CHECK))\\"; \\
pascal@11552 30 else if (/ACT Y/) { s=0; print \\"(ACT Y)\\"} \\
pascal@11552 31 else print \\
pascal@11552 32 }" > /etc/isapnp.conf
pascal@11552 33 if isapnp /etc/isapnp.conf > /dev/null 2>&1 ; then
pascal@11552 34 modprobe cs89x0 io=0x\$io irq=\$irq > /dev/null 2>&1
pascal@11552 35 break 2
pascal@11552 36 fi
pascal@11552 37 done ; done
pascal@17847 38 status
pascal@11552 39 EOT
pascal@11552 40 chmod +x $fs/etc/init.d/pnp.sh
pascal@11552 41 }
pascal@11552 42
pascal@11552 43 # Pre and post install commands for Tazpkg.
pascal@17847 44 pre_remove()
pascal@17847 45 {
pascal@18730 46 sed -i 's/pnp.sh //' "$1/etc/rcS.conf"
pascal@17847 47 }
pascal@17847 48
pascal@11552 49 post_install()
pascal@11552 50 {
pascal@18730 51 grep pnp.sh "$1/etc/rcS.conf" ||
pascal@18730 52 sed -i 's/RUN_SCRIPTS="/&pnp.sh /' "$1/etc/rcS.conf"
pascal@11552 53 }