wok-tiny view module-tlan/receipt @ rev 142

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (6 months ago)
parents 34a749493ee3
children
line source
1 # SliTaz package receipt.
3 PACKAGE="module-tlan"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="driver,ethernet"
7 SHORT_DESC="Kernel module for TI ThunderLAN based ethernet PCI adapters"
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 grep -qs "^${PACKAGE#*-}|" $1/modules ||
32 echo "${PACKAGE#*-}|aui=${AUITLAN:-0}|bbuf=${BIGBUFTLAN:-0}|speed=${SPEEDTLAN:-0}|duplex=${DUPLEXTLAN:-0}" >> $1/modules
33 }
35 config_form()
36 {
37 if [ -z "$SPEEDTLAN" ]; then
38 AUITLAN=on
39 BIGBUFTLAN=on
40 fi
41 cat <<EOT
42 <h4>TI ThunderLAN based ethernet PCI adapter</h4>
43 <table>
44 <tr>
45 <td>Speed</td>
46 <td><select name="SPEEDTLAN">
47 <option value="0">default</option>
48 <option value="10"$([ "$SPEEDTLAN" = "10" ] && echo ' selected="selected"')>10 Mb</option>
49 <option value="100"$([ "$SPEEDTLAN" = "100" ] && echo ' selected="selected"')>100 Mb</option>
50 </select></td>
51 </tr>
52 <tr>
53 <td>Mode</td>
54 <td><select name="DUPLEXTLAN">
55 <option value="0">default</option>
56 <option value="1"$([ "$DUPLEXTLAN" = "1" ] && echo ' selected="selected"')>half duplex</option>
57 <option value="2"$([ "$DUPLEXTLAN" = "2" ] && echo ' selected="selected"')>full duplex</option>
58 </select></td>
59 </tr>
60 </table>
61 <input type="checkbox" name="AUITLAN" ${AUITLAN:+value="on" checked="checked" }/>
62 ThunderLAN use AUI port(s)<br>
63 <input type="checkbox" name="BIGBUFTLAN" ${BIGBUFTLAN:+value="on" checked="checked" }/>
64 ThunderLAN use big buffer<br>
65 EOT
66 }