#!/bin/bash source /etc/functions.magic ### # xvkbd installation script # Copyright (C) Thomas "ShALLaX" Pedley (gentoox@shallax.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ### $important clear echo "This will give you an onscreen keyboard in X" sleep 5 $busy ### # Needed to make sure that executables are available in $PATH after # X is installed (or this would fail) ### env-update source /etc/profile emerge xvkbd mv /root/.xinitrc /root/.xinitrc.old mv /home/gentoox/.xinitrc /home/gentoox/.xinitrc.old mv /etc/skel/.xinitrc /etc/skel/.xinitrc.old clear ### # Add it to .xinitrc. This, however, means that if someone "fixes" this # patch it will always get added for 640x480 mode. The user can fix this # by running xbvset ### echo -e "\n/usr/bin/X11/xvkbd -geometry 640x130+0-81 &\n" > /root/.xinitrc echo -e "\n/usr/bin/X11/xvkbd -geometry 640x130+0-81 &\n" > /home/gentoox/.xinitrc echo -e "\n/usr/bin/X11/xvkbd -geometry 640x130+0-81 &\n" > /etc/skel/.xinitrc clear cat /root/.xinitrc.old >> /root/.xinitrc cat /home/gentoox/.xinitrc.old >> /home/gentoox/.xinitrc cat /etc/skel/.xinitrc.old >> /etc/skel/.xinitrc clear chown gentoox:wheel /home/gentoox/.xinitrc chmod 744 /home/gentoox/.xinitrc rm -rf /root/.xinitrc.old rm -rf /home/gentoox/.xinitrc.old rm -rf /etc/skel/.xinitrc.old cd ~/ clear