#!/bin/bash # Rename startx (usually in /usr/X11R6/bin) to that name mapped_startx="startx_wrap" # Do not edit below this line -------------------------- clsig="" red="31m" bleu="34m" green="35m" colstart="[01;" colend="" echo "${clsig}" echo "${colstart}${red}Frederic Schoenahl's \ Toshiba 2410S startup script${colend}" echo "${colstart}${red}Start X Session : ${colend}" echo " ${colstart}${green}(1)${colend} Mouse is \ touchpad and use framebuffer video device" echo " ${colstart}${green}(2)${colend} Mouse is \ USB bound and use framefuffer video device" echo " ${colstart}${green}(3)${colend} Mouse is \ touchpad and use NVIDIA drivers" echo " ${colstart}${green}(4)${colend} Mouse is \ USB bound and use NVIDIA drivers" echo "or ${colstart}${green}(any other)${colend} default choice (= 4)" echo echo -n "${colstart}${green}please give a choice : ${colend}" read ans case "$ans" in 1) ${mapped_startx} -- -layout fbtouchpad ;; 2) ${mapped_startx} -- -layout fbusbmouse ;; 3) ${mapped_startx} -- -layout nvtouchpad ;; 4) ${mapped_startx} -- -layout nvusbmouse ;; *) ${mapped_startx} -- -layout nvusbmouse ;; esac