Remove startx and xinit functions
authorUlrich Dangel <mru@grml.org>
Sun, 21 Nov 2010 11:57:07 +0000 (12:57 +0100)
committerFrank Terbeck <ft@grml.org>
Sun, 21 Nov 2010 12:24:42 +0000 (13:24 +0100)
Current X11 versions as well as the current grml-x version do
not longer need a configuration file. Therefore the xinit/startx
functions are not longer needed.

The decision to switch to a config less xorg environment was made at the
grml developer meeting http://grml.org/reports/devmeeting_2010/ and a the
new grml-x packet is already uploaded to grml-testing.

doc/grmlzshrc.t2t
etc/zsh/zshrc

index a2bc5b8..8abdf32 100644 (file)
@@ -880,11 +880,6 @@ Example usage:
 % Restart ssh
 ```
 
-: **startx()**
-Initializes an X session using startx(1) if /etc/X11/xorg.conf exists, else
-issues a Warning to use the grml-x(1) script. Can be overridden by using
-/usr/bin/startx directly.
-
 : **status()**
 Shows some information about current system status.
 
@@ -958,11 +953,6 @@ first argument. The optional second argument denotes the distribution
 Tries to cat(1) file(s) given as parameter(s). Always returns true.
 See also xunfunction() below.
 
-: **xinit()**
-Initializes an X session using xinit(1) if /etc/X11/xorg.conf exists, else
-issues a Warning to use the grml-x(1) script. Can be overridden by using
-/usr/bin/xinit directly.
-
 : **xsource()**
 Tries to source the file(s) given as parameter(s). Always returns true.
 See zshbuiltins(1) for a detailed description of the source command.
index 40f58d5..068e10c 100644 (file)
@@ -2632,28 +2632,6 @@ grmlcomp() {
 # {{{ grmlstuff
 grmlstuff() {
 # people should use 'grml-x'!
-    startx() {
-        if [[ -e /etc/X11/xorg.conf ]] ; then
-            [[ -x /usr/bin/startx ]] && /usr/bin/startx "$@" || /usr/X11R6/bin/startx "$@"
-        else
-            echo "Please use the script \"grml-x\" for starting the X Window System
-because there does not exist /etc/X11/xorg.conf yet.
-If you want to use startx anyway please call \"/usr/bin/startx\"."
-            return -1
-        fi
-    }
-
-    xinit() {
-        if [[ -e /etc/X11/xorg.conf ]] ; then
-            [[ -x /usr/bin/xinit ]] && /usr/bin/xinit || /usr/X11R6/bin/xinit
-        else
-            echo "Please use the script \"grml-x\" for starting the X Window System.
-because there does not exist /etc/X11/xorg.conf yet.
-If you want to use xinit anyway please call \"/usr/bin/xinit\"."
-            return -1
-        fi
-    }
-
     if check_com -c 915resolution; then
         855resolution() {
             echo "Please use 915resolution as resolution modifying tool for Intel \