[Lunar-commits] r15156 - in moonbase/trunk/x11/XOrg: . init.d

Auke Kok sofar at lunar-linux.org
Sun May 29 13:56:42 UTC 2005


Author: sofar
Date: 2005-05-29 13:56:41 +0000 (Sun, 29 May 2005)
New Revision: 15156

Added:
   moonbase/trunk/x11/XOrg/init.d/
   moonbase/trunk/x11/XOrg/init.d/ICE,X11-unix
Modified:
   moonbase/trunk/x11/XOrg/BUILD
Log:
Adding a init.d script that creates the proper tmp directories in runlevels 2345. It's installed forced in BUILD and thus requires no maintenance or user intervention. I also slightly modded the BUILD (cosmetics).


Modified: moonbase/trunk/x11/XOrg/BUILD
===================================================================
--- moonbase/trunk/x11/XOrg/BUILD	2005-05-29 13:55:14 UTC (rev 15155)
+++ moonbase/trunk/x11/XOrg/BUILD	2005-05-29 13:56:41 UTC (rev 15156)
@@ -116,11 +116,12 @@
     ln -sf /usr/X11R6/lib/pkgconfig/xft.pc /usr/lib/pkgconfig/xft.pc
   fi &&
 
-  if [ ! -d /tmp/.ICE-unix ]; then
-    mkdir -p /tmp/.ICE-unix
-    chown root /tmp/.ICE-unix
-    chmod 777 /tmp/.ICE-unix
-  fi &&
+  install -g0 -m0 -m0700 $SCRIPT_DIRECTORY/init.d/ICE,X11-unix /etc/init.d/ &&
+  ln -sf /etc/init.d/ICE,X11-unix /etc/rc2.d/S20ICE,X11-unix &&
+  ln -sf /etc/init.d/ICE,X11-unix /etc/rc3.d/S20ICE,X11-unix &&
+  ln -sf /etc/init.d/ICE,X11-unix /etc/rc4.d/S20ICE,X11-unix &&
+  ln -sf /etc/init.d/ICE,X11-unix /etc/rc5.d/S20ICE,X11-unix &&
+  /etc/init.d/ICE,X11-unix start &&
 
   if [ -e /etc/X11/xinit/xinitrc.orig ]; then
     cp /etc/X11/xinit/xinitrc.orig /etc/X11/xinit/xinitrc
@@ -130,6 +131,5 @@
   # cosmetic but needed adjustments:
   echo 'XTerm*loginShell: true' >> /etc/X11/app-defaults/XTerm &&
   echo 'XTerm*loginShell: true' >> /etc/X11/app-defaults/XTerm-color
-  
-  
+ 
 ) > $C_FIFO 2>&1

Added: moonbase/trunk/x11/XOrg/init.d/ICE,X11-unix
===================================================================
--- moonbase/trunk/x11/XOrg/init.d/ICE,X11-unix	2005-05-29 13:55:14 UTC (rev 15155)
+++ moonbase/trunk/x11/XOrg/init.d/ICE,X11-unix	2005-05-29 13:56:41 UTC (rev 15156)
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# ICE,X11-unix - create the X11 tmp directories
+#
+
+case $1 in
+  start)
+    /usr/bin/install -d /tmp/.{ICE,X11}-unix -m1777 -g0 -o0
+	;;
+esac
+


Property changes on: moonbase/trunk/x11/XOrg/init.d/ICE,X11-unix
___________________________________________________________________
Name: svn:executable
   + *



More information about the Lunar-commits mailing list