#!/bin/bash source /etc/functions.magic ### # gpm 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 -e "This script will allow you to use a USB mouse or your Xpad in the console" sleep 2 $busy ### # emerge gpm ### echo -e "emerge gpm..." emerge gpm failCheck emerge $busy ### # Add the correct contents to the gpm config file ### echo -e "Configuring gpm..." cd /etc/conf.d rm -rf ./gpm* $downloading $wget --limit-rate=$limitrate $gentooxurl/patch-files/gpm.conf failCheck download $busy mv ./gpm.conf ./gpm chmod 644 ./gpm ### # Make gpm autoload ### echo -e "Adding gpm to startup" rc-update add gpm default echo -e "Starting gpm" ### # Start it for immediate use ### /etc/init.d/gpm start