#!/bin/bash #Company: PowerCraft Technology #Author: Copyright Jelle de Jong #Note: Please send me an email if you enhanced this script #Version: 0.0.1 #Date: 2008-11-20 # Did the script work for you? # Yes # Yes, but with some errors # Yes, but I had to change some things # Not at all # 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 3 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., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. date=$(date +%Y%m%d%H%M%S) if [ -f /etc/X11/xorg.conf ] then mv --verbose /etc/X11/xorg.conf /etc/X11/xorg-$date.conf fi if [ -L /etc/X11/xorg.conf ] then rm --verbose /etc/X11/xorg.conf fi ln --symbolic --verbose /etc/X11/xorg-style-one.conf /etc/X11/xorg.conf echo "done, please restart your xorg server or your complete system"