SOURCES: 855resolution.sysconfig (NEW), 855resolution.init (NEW) -...
blues
blues at pld-linux.org
Sun Jun 19 01:53:02 CEST 2005
Author: blues Date: Sat Jun 18 23:53:02 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- init files to make it work every day
---- Files affected:
SOURCES:
855resolution.sysconfig (NONE -> 1.1) (NEW), 855resolution.init (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/855resolution.sysconfig
diff -u /dev/null SOURCES/855resolution.sysconfig:1.1
--- /dev/null Sun Jun 19 01:53:02 2005
+++ SOURCES/855resolution.sysconfig Sun Jun 19 01:52:57 2005
@@ -0,0 +1,9 @@
+# Config file for 855resolution application
+# You can "patch" your card to have possible better resolutions on your laptop
+# List of possible modes to replace: 855resolution -l
+#
+# Syntax: mode width heght
+# Example:
+#7c 1280 800
+#7d 1280 800
+#7e 1280 800
================================================================
Index: SOURCES/855resolution.init
diff -u /dev/null SOURCES/855resolution.init:1.1
--- /dev/null Sun Jun 19 01:53:02 2005
+++ SOURCES/855resolution.init Sun Jun 19 01:52:57 2005
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# 855resolution This shell script takes care of setting date from ntp server on startup
+#
+# chkconfig: 2345 15 89
+# description: set resolution for your laptop
+# processname: 855resolution
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Get service config
+if [ ! -f /etc/sysconfig/855resolution ]; then
+ exit 0
+fi
+
+
+# See how we were called.
+case "$1" in
+ start|restart|reload|force-reload)
+ grep -v "^#" /etc/sysconfig/855resolution | while read line
+ do
+ #TODO: make here some better better args checking
+ mode=`echo ${line} | awk '{ print $1;}'`
+ width=`echo ${line} | awk '{ print $2;}'`
+ height=`echo ${line} | awk '{ print $3;}'`
+ run_cmd "Replacing Mode ${mode} of your card with ${width}x${height}" "855resolution ${mode} ${width} ${height}"
+ done
+ ;;
+ stop)
+ # nothing to do
+ ;;
+ status)
+ 855resolution -l
+ ;;
+ *)
+ msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+ exit 3
+esac
================================================================
More information about the pld-cvs-commit
mailing list