]>
Commit | Line | Data |
---|---|---|
819b1e18 | 1 | #!/bin/sh |
2 | # | |
3 | # 915resolution Change the resolution of an available vbios mode for the 915/865/915 Intel graphic chipset | |
4 | # | |
5 | # chkconfig: 2345 15 89 | |
6 | # description: set resolution for your laptop | |
7 | # processname: 915resolution | |
8 | ||
9 | # Source function library. | |
10 | . /etc/rc.d/init.d/functions | |
11 | ||
12 | # Get service config | |
13 | if [ ! -f /etc/sysconfig/915resolution ]; then | |
14 | exit 0 | |
15 | fi | |
16 | ||
17 | # See how we were called. | |
18 | case "$1" in | |
19 | start|restart|reload|force-reload) | |
88e2bcde | 20 | grep -vqE "^(#|[[:blank:]]*$)" /etc/sysconfig/915resolution | while read mode width height; do |
819b1e18 | 21 | run_cmd "Replacing Mode ${mode} of your card with ${width}x${height}" "915resolution ${mode} ${width} ${height}" |
22 | done | |
23 | ;; | |
24 | stop) | |
25 | # nothing to do | |
26 | ;; | |
27 | status) | |
28 | 915resolution -l | |
29 | ;; | |
30 | *) | |
31 | msg_usage "$0 {start|stop|restart|reload|force-reload|status}" | |
32 | exit 3 | |
33 | esac |