Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > 30c01f6a2760f455107ba70ae53a4895 > files > 4

915resolution-0.5.2-6mdv2007.0.src.rpm

#! /bin/sh
#
# chkconfig: 5 29 10
# description:	Modify the i8xx and i9xx BIOS video modes before running dm
#
# 29 = 30 - 1 where 30 is "dm"
#
### BEGIN INIT INFO
# Provides: 915resolution
# Short-Description: Modify the i8xx and i9xx BIOS video modes before running dm
# Description: Modify the i8xx and i9xx BIOS video modes before running dm
### END INIT INFO


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

name=915resolution

if [ -f /etc/sysconfig/$name ]; then
    . /etc/sysconfig/$name
fi

if [ "$MODE" = "" ] || [ "$XRESO" = "" ] || [ "$YRESO" = "" ] ; then
   exit 0
fi


start() 
{
        gprintf "Starting $name: "
	daemon /usr/sbin/915resolution $MODE $XRESO $YRESO $BIT

	touch /var/lock/subsys/$name
	echo
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
        ;;
  restart|reload)
	start
	;;
  status)
  	status $name
	;;
  *)
        gprintf "Usage: %s {start|stop|restart|reload}\n" "$0"
        exit 1
esac

exit 0