diff options
author | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
commit | 416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5 (patch) | |
tree | 4715f7d742fec50931017f38fe6ff0a89d4ceccc /initramfs/stage3-stuff/bin/init-wrapper | |
parent | Fix for the problem reported on the list (sed filter forgotten for the (diff) | |
download | core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.gz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.xz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.zip |
change dir structure
Diffstat (limited to 'initramfs/stage3-stuff/bin/init-wrapper')
-rwxr-xr-x | initramfs/stage3-stuff/bin/init-wrapper | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/initramfs/stage3-stuff/bin/init-wrapper b/initramfs/stage3-stuff/bin/init-wrapper deleted file mode 100755 index 57fcb8a0..00000000 --- a/initramfs/stage3-stuff/bin/init-wrapper +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# Copyright (c) 2006..2010 - 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 -############################################################################# - -# Get parameters -init_file="$1" -DEBUGLEVEL="$2" - -[ -z $DEBUGLEVEL ] && DEBUGLEVEL=0 - -# 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 - -# Initial -testmkd /tmp/env - -if [ ! -f /tmp/env/base.sed ]; then - # Get environment and prepare as sed command - pre_env_base=$(env | sed -e 's/^\([^=]*\).*/\1/' | tr '\n' ';') - pre_env_base=$(echo $pre_env_base| sed -e 's/;/\.\*\/\/;s\/\^/g') - pre_env_base="s/^$pre_env_base//;" - $(echo $pre_env_base > /tmp/env/base.sed) -else - pre_env_base=$(cat /tmp/env/base.sed) -fi - -# Load temporary environments -[ -f /tmp/env/wrapper.env ] && . /tmp/env/wrapper.env - -[ "${DEBUGLEVEL}" -eq 15 ] && set -x -[ -f $init_file ] && . $init_file -[ "${DEBUGLEVEL}" -eq 15 ] && set +x - -# Remove already known environment variables from postenv -#env |sed -e $pre_env_base | sort -u | \ -# Store the environment for re-initialization in runinithook function -env | grep -v -E "debug|DEBUGLEVEL" | sort -u | \ - sed "1s|.*|# generated by init-wrapper; last changed by $init_file|" | \ - sed -e 's/^\([^=]*\)=\(.*\)/export \1="\2"/' \ - > /tmp/env/wrapper.env - |