wok-tiny diff hardware-ibm-6272/receipt @ rev 94

Refresh, remove kernel*, add linux
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 02 21:45:05 2015 +0200 (2015-10-02)
parents
children 2c3b4f47fbf5
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hardware-ibm-6272/receipt	Fri Oct 02 21:45:05 2015 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="hardware-ibm-6272"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="meta"
     1.9 +MAINTAINER="devel@slitaz.org"
    1.10 +LICENSE="BSD"
    1.11 +SHORT_DESC="IBM 300GL 6272/6282 (P75-233 ISA/PCI/USB/ETH desktop) hardware support"
    1.12 +WEB_SITE="http://www.slitaz.org/"
    1.13 +
    1.14 +DEPENDS="isapnptools module-cs89x0"
    1.15 +SUGGESTED="module-usb-storage"
    1.16 +
    1.17 +# Post message when installing.
    1.18 +post_install()
    1.19 +{
    1.20 +	[ -s $1/etc/init.d/pnp.sh ] || cat > $1/etc/init.d/pnp.sh <<EOT
    1.21 +#!/bin/sh
    1.22 +
    1.23 +. /etc/init.d/rc.functions
    1.24 +EOT
    1.25 +	chmod +x $fs/etc/init.d/pnp.sh
    1.26 +	cat >> $1/etc/init.d/pnp.sh <<EOT
    1.27 +
    1.28 +echo -n "Switching on isa pnp ethernet card "
    1.29 +for io in \$(seq 360 -10 250); do for irq in IRQ_CS89X0_LIST; do
    1.30 +pnpdump | awk "BEGIN {s=0} \\
    1.31 +/CONFIGURE CSC6040/ {s=1} { \\
    1.32 +  if (s==0) print; \\
    1.33 +  else if (/INT 0/) print \\"(INT 0 (IRQ \$irq (MODE +E)))\\"; \\
    1.34 +  else if (/IO 0/) print \\"(IO 0 (SIZE 16) (BASE 0x0\$io) (CHECK))\\"; \\
    1.35 +  else if (/ACT Y/) { s=0; print \\"(ACT Y)\\"} \\
    1.36 +  else print \\
    1.37 +}" > /etc/isapnp.conf
    1.38 +if isapnp /etc/isapnp.conf > /dev/null 2>&1 ; then
    1.39 +  modprobe cs89x0 io=0x\$io irq=\$irq > /dev/null 2>&1
    1.40 +  break 2
    1.41 +fi
    1.42 +done ; done
    1.43 +status
    1.44 +EOT
    1.45 +	grep pnp.sh $1/etc/rcS.conf ||
    1.46 +	sed -i 's/EARLY_RUN_SCRIPTS="/&pnp.sh /' $1/etc/rcS.conf
    1.47 +	list=""
    1.48 +	for i in $IRQ_CS89X0_LIST ; do
    1.49 +		case " 15 12 11 10 9 7 6 5 4 3 " in
    1.50 +		*\ $i\ *)	list="$list $i "
    1.51 +		esac
    1.52 +	done
    1.53 +	sed -i "s/IRQ_CS89X0_LIST/${list:-15 12 11 10}/" $1/etc/init.d/pnp.sh
    1.54 +	sed -i 's/cs89x0[^ "]* //' $1/etc/rcS.conf
    1.55 +}
    1.56 +
    1.57 +config_form()
    1.58 +{
    1.59 +	cat <<EOT
    1.60 +<table>
    1.61 +<tr>
    1.62 +<td>Allowed IRQ for the Ethernet driver cs89x0</td>
    1.63 +<td><input type="text" name="IRQ_CS89X0_LIST" value="${IRQ_LIST:-15 12 11 10 9 7 6 5 4 3}" /></td>
    1.64 +</tr>
    1.65 +</table>
    1.66 +EOT
    1.67 +}