# HG changeset patch # User Pascal Bellard # Date 1324822743 -3600 # Node ID aec876909b0305437a36cc87241f9c73613a85b1 # Parent 0b72ced793707280fce20149b2c2e035e10f5b67 Add hardware-thinkpad-600e form wok-undigest diff -r 0b72ced79370 -r aec876909b03 hardware-thinkpad-600e/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hardware-thinkpad-600e/receipt Sun Dec 25 15:19:03 2011 +0100 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="hardware-thinkpad-600e" +VERSION="1.0" +CATEGORY="meta" +MAINTAINER="devel@slitaz.org" +SHORT_DESC="ThinkPad 600e (PII pcmcia laptop) hardware support" +WEB_SITE="http://www.slitaz.org/" + +DEPENDS="linux-acpi linux-mwave tp_smapi linux-sound xorg-xf86-video-neomagic" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/etc +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + for i in thinkpad_acpi snd_cs46xx yenta_socket ; do + grep -q $i $1/etc/rcS.conf || + sed -i "s/LOAD_MODULES=\"/&$i /" $i $1/etc/rcS.conf + [ -n "$1" ] || modprobe $i + done + # FIXME update /etc/modprobe.d/ ? + # modprobe snd-cs4236 index=0 port=0x530 cport=0x538 irq=5 dma1=1 dma2=0 isapnp=0 + # modprobe snd-cs4232 port=0x530 cport=0x120 irq=5 dma1=1 dma2=0 isapnp=0 + + # Video: remove 24bits (use 1024x768x16), neomagic driver + sed -i 's/vesa/neomagic/;/Display/{NNN/24$/d}' $1/etc/X11/xorg.conf + sed -i '/Display/{NNNN/24$/d}' $1/etc/X11/xorg.conf.d/70-Screen.conf + sed -i 's/vesa/neomagic/' $1/etc/X11/xorg.conf.d/60-Device.conf + cat <