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