wok-6.x view hardware-thinkpad-600e/receipt @ rev 23854

Up dbus (1.12.18)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 16 12:51:04 2020 +0000 (2020-06-16)
parents 7bb096863642
children
line source
1 # SliTaz package receipt.
3 PACKAGE="hardware-thinkpad-600e"
4 VERSION="1.0"
5 CATEGORY="meta"
6 MAINTAINER="devel@slitaz.org"
7 LICENSE="BSD"
8 SHORT_DESC="ThinkPad 600e (PII pcmcia laptop) hardware support"
9 WEB_SITE="http://www.slitaz.org/"
11 DEPENDS="linux-acpi linux-mwave tp_smapi linux-sound xorg-xf86-video-neomagic"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/etc
17 }
19 # Pre and post install commands for Tazpkg.
20 post_install()
21 {
22 for i in thinkpad_acpi snd_cs46xx yenta_socket ; do
23 grep -q $i "$1/etc/rcS.conf" ||
24 sed -i "s/LOAD_MODULES=\"/&$i /" $i "$1/etc/rcS.conf"
25 [ -n "$1" ] || modprobe $i
26 done
27 # FIXME update /etc/modprobe.d/ ?
28 # modprobe snd-cs4236 index=0 port=0x530 cport=0x538 irq=5 dma1=1 dma2=0 isapnp=0
29 # modprobe snd-cs4232 port=0x530 cport=0x120 irq=5 dma1=1 dma2=0 isapnp=0
31 # Video: remove 24bits (use 1024x768x16), neomagic driver
32 sed -i 's/vesa/neomagic/;/Display/{NNN/24$/d}' "$1/etc/X11/xorg.conf"
33 sed -i '/Display/{NNNN/24$/d}' "$1/etc/X11/xorg.conf.d/70-Screen.conf"
34 sed -i 's/vesa/neomagic/' "$1/etc/X11/xorg.conf.d/60-Device.conf"
35 cat <<EOT
36 Please turn off quickboot in the bios to activate sound card...
37 EOT
38 }