SF.net SVN: morphix: [2264] trunk/scripts-main/matchbox

[email protected]
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2264
Author:   bmsleight
Date:     2006-05-27 15:38:13 -0700 (Sat, 27 May 2006)
ViewCVS:  http://svn.sourceforge.net/morphix/?rev=2264&view=rev

Log Message:
-----------
Yet more from Gandalfar's LiveKiosk

Modified Paths:
--------------
    trunk/scripts-main/matchbox/Makefile

Added Paths:
-----------
    trunk/scripts-main/matchbox/noblanking.sh
Modified: trunk/scripts-main/matchbox/Makefile
===================================================================
--- trunk/scripts-main/matchbox/Makefile	2006-05-27 22:12:39 UTC (rev 2263)
+++ trunk/scripts-main/matchbox/Makefile	2006-05-27 22:38:13 UTC (rev 2264)
@@ -8,9 +8,11 @@
 	mkdir -p $(DESTDIR)/etc
 	mkdir -p $(DESTDIR)/etc/skel
 	mkdir -p $(DESTDIR)/etc/skel/.matchbox
-	cp -a ./include.sh ./main_module ./launch_persistent-app.sh  ./matchbox-session $(DESTDIR)/morphix/
+	cp -a ./include.sh ./main_module ./launch_persistent-app.sh ./noblanking.sh ./matchbox-session $(DESTDIR)/morphix/
 	chmod a+x $(DESTDIR)/morphix/matchbox-session
 	chmod a+x $(DESTDIR)/morphix/launch_persistent-app.sh
+	chmod a+x $(DESTDIR)/morphix/noblanking.sh
+	ln -s $(DESTDIR)/morphix/noblanking.sh  $(DESTDIR)/morphix/rc.m/S07X11-noblanking
 	cp -a ./persistent-app $(DESTDIR)/etc/skel/.persistent-app
 	cp -a ./xscreensaver $(DESTDIR)/etc/skel/.xscreensaver
 	cp -a ./kbdconfig ./mbdock.session $(DESTDIR)/etc/skel/.matchbox/
@@ -20,6 +22,8 @@
 	rm $(DESTDIR)/morphix//main_module 
 	rm $(DESTDIR)/morphix/launch_persistent-app.sh
 	rm $(DESTDIR)/morphix/matchbox-session
+	rm $(DESTDIR)/morphix/noblanking.sh
+	rm $(DESTDIR)/morphix/rc.m/S07X11-noblanking
 	rm $(DESTDIR)/etc/skel/.persistent-app 
 	rm $(DESTDIR)/etc/skel/.xscreensaver
 	rm $(DESTDIR)/etc/skel/.matchbox/kbdconfig

Added: trunk/scripts-main/matchbox/noblanking.sh
===================================================================
--- trunk/scripts-main/matchbox/noblanking.sh	                        (rev 0)
+++ trunk/scripts-main/matchbox/noblanking.sh	2006-05-27 22:38:13 UTC (rev 2264)
@@ -0,0 +1,24 @@
+#!/bin/bash
+#
+# Script to remove DPMS from X11 config file
+#
+
+awk '{gsub("\"DPMS\"\t\"true\"", "\"DPMS\"\t\"false\"", $0); print }' /etc/X11/XF86Config-4 > /etc/X11/temp
+mv /etc/X11/temp /etc/X11/XF86Config-4
+
+awk '{gsub("\"DPMS\"\t\"true\"", "\"DPMS\"\t\"false\"", $0); print }'  /etc/X11/XF86Config > /etc/X11/temp
+mv /etc/X11/temp /etc/X11/XF86Config
+
+# Disable <ctrl>+<alt>+<fn> and <ctrl>+<alt>+<backspace>
+
+echo -e "\nSection \"ServerFlags\"\n\tOption \"DontVTSwitch\" \"On\"\n\tOption \"DontZap\" \"On\"\nEndSection" >> /etc/X11/XF86Config-4
+
+echo -e "\nSection \"ServerFlags\"\n\tOption \"DontVTSwitch\" \"On\"\n\tOption \"DontZap\" \"On\"\nEndSection" >> /etc/X11/XF86Config
+
+
+grep -v Meta /etc/X11/XF86Config > /etc/X11/temp
+mv /etc/X11/temp /etc/X11/XF86Config
+
+grep -v Meta /etc/X11/XF86Config-4 > /etc/X11/temp
+mv /etc/X11/temp /etc/X11/XF86Config
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.