#!/bin/bash # # setup xorg.conf # # chkconfig: 345 05 95 # description: Configure xorg using system-config-display case "$1" in start) echo -n $"Configuring X Server" # We don't want to run this on random runlevel changes. touch /var/lock/subsys/xconfig /usr/bin/system-config-display --noui --reconfig --set-depth=16 --set-resolution=1024x768 ;; status) base=xconfig if [ -f /var/lock/subsys/xconfig ]; then echo $"${base} has run" exit 0 fi echo $"${base} is stopped" exit 3 ;; stop) rm -f /var/lock/subsys/xconfig ;; *) echo $"Usage: $0 {start|stop}" exit 1 ;; esac exit $RETVAL