#! /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