#!/bin/bash # # resolution This shell script enables the automatic use of the screen on a Dell Inspiron 1300 at 1280x800 resolution. # # Author: Chris Lester # lester at an hep and a phy and a cam and an ac and an uk all separated by dots # # chkconfig: 5 09 01 # # description: Set screen bios resultion hack # processname: 915resolution # # source function library . /etc/rc.d/init.d/functions RETVAL=0 start() { echo -n $"Setting screen resolution " /usr/sbin/915resolution 49 1280 800 && /usr/sbin/915resolution 58 1280 800 && success || failure RETVAL=$? echo } stop() { echo -n $"Doing nothing for 915resolution: " success RETVAL=$? echo } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|force-reload) restart ;; reload) ;; condrestart) restart ;; status) /usr/sbin/915resolution -l RETVAL=0 ;; *) echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}" exit 1 esac exit $RETVAL