#!/bin/sh
#
# 915resolution: Enables additional resolutions \
#                on some 915 Intel graphic chipsets
#
# chkconfig: - 95 95
# description: Changes the resolution of an available vbios mode \ 
#              (915 Intel graphic chipset)
#
# config: /etc/sysconfig/915resolution

# Source function library.
. /etc/rc.d/init.d/functions

[ -f /etc/sysconfig/915resolution ] && . /etc/sysconfig/915resolution

# See how we were called.
case "$1" in
    start)
	if [ -n "${BIOS_TYPE}" ] && [ -n "${X}" ] && [ -n "${Y}" ] ; then
	    echo -n $"Patch mode ${BIOS_TYPE} to resolution ${X}x${Y}:"
            915resolution ${BIOS_TYPE} ${X} ${Y} >/dev/null 2>&1 
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && success || failure
	    echo
	    exit $RETVAL
	fi
	;;
esac

exit 0
