]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- restore, but this time with some doc too
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Nov 2009 23:14:00 +0000 (23:14 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Nov 2009 23:14:00 +0000 (23:14 +0000)
svn-id: @10998

rc.d/rc.init [new file with mode: 0755]

diff --git a/rc.d/rc.init b/rc.d/rc.init
new file mode 100755 (executable)
index 0000000..11faa58
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+# $Id: rc.init 10092 2009-01-23 13:39:27Z glen $
+#
+# If this script is intalled as /etc/rc.d/rc.init,
+# it is executed by init(8) for every program it
+# wants to spawn like this:
+#
+# /bin/sh /etc/rc.d/rc.init <id> <level> <action> <process>
+#
+# It can be used to set the default umask and ulimit
+# of all processes. See initscript(5) for more details.
+
+[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
+
+[ -n "$LANG" ] && export LANG || unset LANG
+[ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE
+[ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE
+[ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES
+[ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC
+[ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY
+[ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME
+[ -n "$LC_ALL" ] && export LC_ALL || unset LC_ALL
+[ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
+[ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
+
+# Execute the program.
+eval exec "$4"
This page took 0.181793 seconds and 4 git commands to generate.