- add /etc/profile.d/configcache.conf for permanent caching of configfiles to /storage/.cache
- add /etc/profile.d/fastboot.conf for fastboot config variables
- remove /etc/profile.d/home.conf
- add /etc/profile.d/hostname.conf for hostnam config variable
- remove /etc/profile.d/language.conf
- cleanup /etc/profile.d/path.conf
- add /etc/profile.d/runlevel.conf for detecting runlevel (move from /sbin/init)
- cleanup /etc/profile.d/shell.conf
- start /sbin/init with login shell to have access to profile.d variables
- remove additional read of /etc/profile
This commit is contained in:
Stephan Raue 2010-03-25 12:11:29 +01:00
parent 09a731f854
commit 4751f4fd41
7 changed files with 37 additions and 28 deletions

View File

@ -1,13 +1,10 @@
################################################################################
# Core (Language) environment variables.
# Core (Shell) environment variables.
#
# This file contains non-OpenELEC evironment variables as well as OpenELEC
# evironment variables that are not user defined.
################################################################################
#-------------------------------------------------------------------------------
# Language variables.
#-------------------------------------------------------------------------------
LANG='de_DE.UTF-8'
CONFIG_CACHE="/storage/.cache"
export LANG
export CONFIG_CACHE

View File

@ -1,13 +1,16 @@
################################################################################
# Core (HOME) environment variables.
# Core (Shell) environment variables.
#
# This file contains non-OpenELEC evironment variables as well as OpenELEC
# evironment variables that are not user defined.
################################################################################
#-------------------------------------------------------------------------------
# Home environment variables.
#-------------------------------------------------------------------------------
HOME="/storage"
# setting some Variables
if test "$FASTBOOT" = "yes"; then
IONICE="ionice -c 1 -n 0"
NICE_20="nice -n -20"
else
FASTBOOT=no
fi
export HOME
export FASTBOOT

View File

@ -0,0 +1,10 @@
################################################################################
# Core (Shell) environment variables.
#
# This file contains non-OpenELEC evironment variables as well as OpenELEC
# evironment variables that are not user defined.
################################################################################
HOSTNAME=`cat /etc/hostname`
export HOSTNAME

View File

@ -5,9 +5,6 @@
# evironment variables that are not user defined.
################################################################################
#-------------------------------------------------------------------------------
# General environment variables.
#-------------------------------------------------------------------------------
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
export PATH

View File

@ -0,0 +1,14 @@
################################################################################
# Core (Shell) environment variables.
#
# This file contains non-OpenELEC evironment variables as well as OpenELEC
# evironment variables that are not user defined.
################################################################################
# getting runlevel
RUNLEVEL="openelec"
if test "$TEXTMODE" = yes; then
RUNLEVEL="textmode"
fi
export RUNLEVEL

View File

@ -5,9 +5,6 @@
# evironment variables that are not user defined.
################################################################################
#-------------------------------------------------------------------------------
# Prompt environment variables.
#-------------------------------------------------------------------------------
PS1='\u@\h:\w \$ '
export PS1

View File

@ -1,13 +1,4 @@
#!/bin/sh
# read config
. /etc/profile
# getting runlevel
RUNLEVEL="openelec"
if test "$TEXTMODE" = yes; then
RUNLEVEL="textmode"
fi
#!/bin/sh -l
# starting init scripts for wanted runlevel
progress "Starting Init Scripts"