Changeset 703

Show
Ignore:
Timestamp:
07/15/08 19:18:42 (2 months ago)
Author:
free
Message:

. added model support to touchscreen

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdd-utils/trunk/debian/changelog

    r698 r703  
    1 cdd-utils (0.12.10) 64studio; urgency=low 
     1cdd-utils (0.12.11) 64studio; urgency=low 
    22 
    33  * [lib]: 
     
    1010        . configure silicon motion EXA acceleration 
    1111        . allow root login in kdm 
     12        . added model support to touchscreen 
    1213     - server 
    1314        . add cups script for sharing printers with samba 
  • cdd-utils/trunk/lib/common.sh

    r689 r703  
    6161    sed -i -e "\|^$key| a $val" $cfg 
    6262} 
     63has_key () { 
     64    key="$1" 
     65    cfg="$2" 
     66    if ! grep -q "^$key" "$cfg"; then 
     67        return 1 
     68    else 
     69        return 0 
     70    fi     
     71} 
    6372clr_key () { 
    6473    key="$1" 
  • cdd-utils/trunk/lib/desktop.sh

    r701 r703  
    146146# Trinity touchscreen     
    147147touchscreen () { 
    148     cfg=/etc/modprobe.d/blacklist-touchscreen 
    149     cat <<EOF > $cfg 
    150 blacklist usbtouchscreen 
    151 EOF 
     148    model=$1 
    152149 
    153150    cfg=/etc/udev/rules.d/60-touchscreen.rules 
     
    157154KERNEL=="event[0-9]*", SYSFS{idVendor}=="0eef", SYSFS{idProduct}=="0001", SYMLINK+="input/touchscreen" 
    158155EOF 
     156 
     157    if nullstr $model;  then warning "No model given"; return; fi 
    159158 
    160159    cfg=/etc/X11/xorg.conf 
     
    218217    clr_key "Section \"Device\"" "EndSection" "$cfg" 
    219218    aft_key "Section \"Device\"" "$silicon" "$cfg" 
    220  
    221  
    222219} 
    223220