1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# this script will run and/or configure X
# copyright 2004 vagrant@freegeek.org, distributed under the terms of the
# GNU General Public License version 2 or any later version.
. /etc/lessdisks/x.config
PATH="/usr/bin/:/usr/sbin/:/usr/bin/X11/:$PATH"
if [ "yes" = "$auto_config_x" ]; then
auto_config_x=true
fi
if [ "true" = "$auto_config_x" ]; then
if [ -n "$(which $x_config_command)" ]; then
echo "configuring X with: $x_config_command $x_config_opts"
$x_config_command $x_config_opts
else
echo "couldn't find x_config_command: $x_config_command"
fi
else
echo "not configuring X (set auto_config_x to change)"
fi
if [ "yes" = "$auto_start_x" ]; then
auto_start_x=true
fi
if [ "true" = "$auto_start_x" ] && [ -n "$x_display_command" ]; then
if [ -n "$(which $x_display_command)" ]; then
echo "Starting X...."
echo "log file in /var/log/xfree86"
echo "control-alt-backspace to exit..."
sleep 2
$x_display_command $x_display_opts 2> /var/log/xfree86 &
else
echo "couldn't find: $x_display_command"
fi
else
echo " "
echo "not starting X"
echo "auto_start_x not set to true, or x_display_command are not set"
echo "edit /etc/lessdisks/x.config to change this."
echo " "
fi
|