summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/init-wrapper
diff options
context:
space:
mode:
authorSebastian Schmelzer2008-10-14 19:20:22 +0200
committerSebastian Schmelzer2008-10-14 19:20:22 +0200
commit025e90bb58fb8306cf359a147d3dc5ad76d02c8f (patch)
tree862f399975b8f7137ad91a26c1bd26b1f22d5045 /initramfs/stage3-stuff/bin/init-wrapper
parent * fixed wrong check for /initramfs/plugin-conf/ dir (diff)
downloadcore-025e90bb58fb8306cf359a147d3dc5ad76d02c8f.tar.gz
core-025e90bb58fb8306cf359a147d3dc5ad76d02c8f.tar.xz
core-025e90bb58fb8306cf359a147d3dc5ad76d02c8f.zip
* fix for #212
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2295 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/init-wrapper')
-rwxr-xr-xinitramfs/stage3-stuff/bin/init-wrapper28
1 files changed, 28 insertions, 0 deletions
diff --git a/initramfs/stage3-stuff/bin/init-wrapper b/initramfs/stage3-stuff/bin/init-wrapper
new file mode 100755
index 00000000..3efd1cf4
--- /dev/null
+++ b/initramfs/stage3-stuff/bin/init-wrapper
@@ -0,0 +1,28 @@
+#!/bin/ash
+# Copyright (c) 2006..2008 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your feedback to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org
+#
+# wrapperscript for plugin init files
+#############################################################################
+
+# how do the localization here? There is not yet a country-Variable
+. /etc/messages
+. /etc/functions
+. /etc/distro-functions
+
+# configuration settings for this slx system's environment
+. /etc/slxsystem.conf 2>/dev/null
+
+# initramfs-setup configuration (common initial settings for all clients using
+# a certain InitRamFS generated by slxconfig-demuxer)
+[ -f /etc/initramfs-setup ] && . /etc/initramfs-setup 2>/dev/null
+
+[ -f $1 ] && . $1
+