wok-current view hardware-ibm-6272/receipt @ rev 12971
qjackctl: fake LDFLAGS (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 01 13:10:04 2012 +0200 (2012-06-01) |
parents | |
children | 7bb096863642 |
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 SHORT_DESC="IBM 300GL 6272/6282 (P75-233 ISA/PCI/USB/ETH desktop) hardware support"
8 WEB_SITE="http://www.slitaz.org/"
10 DEPENDS="isapnptools"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/etc/init.d
16 cat > $fs/etc/init.d/pnp.sh <<EOT
17 #!/bin/sh
19 status="\\\\033[70G[ \\\\033[1;31mFailed\\\\033[0;39m ]"
20 echo -n "Switching on isa pnp ethernet card "
21 # io 0x360..0x250 by 0x10, irq 15 12 11 10 9 7 6 5 4 3
22 for io in \$(seq 360 -10 250); do for irq in 15 12 11 10; do
23 pnpdump | busybox awk "BEGIN {s=0} \\
24 /CONFIGURE CSC6040/ {s=1} { \\
25 if (s==0) print; \\
26 else if (/INT 0/) print \\"(INT 0 (IRQ \$irq (MODE +E)))\\"; \\
27 else if (/IO 0/) print \\"(IO 0 (SIZE 16) (BASE 0x0\$io) (CHECK))\\"; \\
28 else if (/ACT Y/) { s=0; print \\"(ACT Y)\\"} \\
29 else print \\
30 }" > /etc/isapnp.conf
31 if isapnp /etc/isapnp.conf > /dev/null 2>&1 ; then
32 modprobe cs89x0 io=0x\$io irq=\$irq > /dev/null 2>&1
33 status="\\\\033[70G[ \\\\033[1;33mOK\\\\033[0;39m ]"
34 break 2
35 fi
36 done ; done
37 echo -e "\$status"
38 EOT
39 chmod +x $fs/etc/init.d/pnp.sh
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 grep pnp.sh $1/etc/rcS.conf ||
46 sed -i 's/RUN_SCRIPTS="/&pnp.sh /' $1/etc/rcS.conf
47 }