wok view hardware-thinkpad-600e/receipt @ rev 19635
Up SliTaz projects: cookutils(867), slitaz-base-files(321), slitaz-boot-scripts(437), slitaz-tools(1009), tazbug(95), tazirc(20), tazlito(448), tazpkg(933).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jan 17 17:38:43 2017 +0200 (2017-01-17) |
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 }