tags 545756 + patch
thanks

This patch would implement what we need in Debian Edu, by calling
profile.d fragments after umask is set to allow it to be overriden in
the debian-edu-config package.

--- base-files-5.2/debian/changelog     2010-04-04 13:26:21.000000000 +0200
+++ base-files-5.2+nmu1/debian/changelog        2010-04-09 16:31:53.000000000 
+0200
@@ -1,3 +1,9 @@
+base-files (5.2+nmu1) unstable; urgency=low
+
+  * Implement support for LSB-3.1, 16.2 (/etc/profile.d).
+
+ -- Petter Reinholdtsen <p...@debian.org>  Fri, 09 Apr 2010 16:31:53 +0200
+
 base-files (5.2) unstable; urgency=low

   * Added question in FAQ to document the fact that some configuration
diff -Nru base-files-5.2/debian/directory-list 
base-files-5.2+nmu1/debian/directory-list
--- base-files-5.2/debian/directory-list        2005-07-12 17:31:01.000000000 
+0200
+++ base-files-5.2+nmu1/debian/directory-list   2010-04-09 16:33:36.000000000 
+0200
@@ -4,6 +4,7 @@
 etc
 etc/default
 etc/skel
+etc/profile.d
 home
 lib
 mnt
diff -Nru base-files-5.2/share/profile base-files-5.2+nmu1/share/profile
--- base-files-5.2/share/profile        2010-01-31 13:34:43.000000000 +0100
+++ base-files-5.2+nmu1/share/profile   2010-04-09 16:34:58.000000000 +0200
@@ -26,3 +26,13 @@
 fi

 umask 022
+
+# /etc/profile.d/ is defined in LSB version 3.1 section 16.2
+if [ -d /etc/profile.d ]; then
+  for i in /etc/profile.d/*.sh; do
+    if [ -r $i ]; then
+      . $i
+    fi
+  done
+  unset i
+fi

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to