]> git.pld-linux.org Git - packages/855resolution.git/blame - 855resolution.init
- rel 1
[packages/855resolution.git] / 855resolution.init
CommitLineData
f0ab59d0
PG
1#!/bin/sh
2#
8f84463c 3# 855resolution Change the resolution of an available vbios mode for the 855/865/915 Intel graphic chipset
f0ab59d0
PG
4#
5# chkconfig: 2345 15 89
6# description: set resolution for your laptop
7# processname: 855resolution
8
9# Source function library.
10. /etc/rc.d/init.d/functions
11
12# Get service config
13if [ ! -f /etc/sysconfig/855resolution ]; then
14 exit 0
15fi
16
f0ab59d0
PG
17# See how we were called.
18case "$1" in
19 start|restart|reload|force-reload)
20 grep -v "^#" /etc/sysconfig/855resolution | while read line
21 do
22 #TODO: make here some better better args checking
23 mode=`echo ${line} | awk '{ print $1;}'`
24 width=`echo ${line} | awk '{ print $2;}'`
25 height=`echo ${line} | awk '{ print $3;}'`
26 run_cmd "Replacing Mode ${mode} of your card with ${width}x${height}" "855resolution ${mode} ${width} ${height}"
27 done
28 ;;
29 stop)
30 # nothing to do
31 ;;
32 status)
33 855resolution -l
34 ;;
35 *)
36 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
37 exit 3
38esac
This page took 0.074692 seconds and 4 git commands to generate.