wok-tiny view module-via-rhine/receipt @ rev 142

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (2 months ago)
parents 564c3784dad6
children
line source
1 # SliTaz package receipt.
3 PACKAGE="module-via-rhine"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="driver,ethernet"
7 SHORT_DESC="Kernel module for the VIA Rhine (VT86C100A, VT6102, VT6105 or VT8235) driver"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://tiny.slitaz.org/"
11 WANTED="linux"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 export src=$WOK/$WANTED/source/linux-$VERSION
18 export _pkg=$WOK/$WANTED/install
19 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
20 mkdir -p $fs/$path
21 $src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do
22 dir=$path/$(dirname $module)
23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
24 cp -a $_pkg/$path/$module $fs/$dir
25 done
26 }
28 # Post install/remove commands for Tazpkg.
29 post_install()
30 {
31 [ "$IRQRHINE" ] && IRQRHINE="|irq=${IRQRHINE// /,}"
32 grep -qs "^${PACKAGE#*-}|" $1/modules ||
33 echo "${PACKAGE#*-}$IRQRHINE|debug=${DBGRHINE:-0}|max_interrupt_work=${MAXERHINE:-10}" >> $1/modules
34 }
36 config_form()
37 {
38 cat <<EOT
39 <h4>VIA Rhine based (Rhine-I (VT86C100A), Rhine-II (VT6102), or Rhine-III (VT6105)) Ethernet driver</h4>
40 <table>
41 <tr>
42 <td>Maximum events handled per interrupt</td>
43 <td><select name="MAXERHINE">
44 EOT
45 for i in $(seq 10 -1 1); do
46 cat <<EOT
47 <option value="$i"$([ "$MAXERHINE" = "$i" ] && echo ' selected="selected"')>$i</option>
48 EOT
49 done
50 cat <<EOT
51 </select></td>
52 </tr>
53 <tr>
54 <td>Debug</td>
55 <td><select name="DBGRHINE">
56 EOT
57 for i in $(seq 0 7); do
58 cat <<EOT
59 <option value="$i"$([ "$DBGRHINE" = "$i" ] && echo ' selected="selected"')>$i</option>
60 EOT
61 done
62 cat <<EOT
63 </select></td>
64 </tr>
65 </table>
66 EOT
67 }