diff --git a/packages/sysutils/busybox/profile.d/language.conf b/packages/sysutils/busybox/profile.d/configcache.conf similarity index 53% rename from packages/sysutils/busybox/profile.d/language.conf rename to packages/sysutils/busybox/profile.d/configcache.conf index f0d12a43ed..8370bf345f 100644 --- a/packages/sysutils/busybox/profile.d/language.conf +++ b/packages/sysutils/busybox/profile.d/configcache.conf @@ -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 \ No newline at end of file diff --git a/packages/sysutils/busybox/profile.d/home.conf b/packages/sysutils/busybox/profile.d/fastboot.conf similarity index 53% rename from packages/sysutils/busybox/profile.d/home.conf rename to packages/sysutils/busybox/profile.d/fastboot.conf index 4f3c80f557..1e0fb0b912 100644 --- a/packages/sysutils/busybox/profile.d/home.conf +++ b/packages/sysutils/busybox/profile.d/fastboot.conf @@ -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 \ No newline at end of file diff --git a/packages/sysutils/busybox/profile.d/hostname.conf b/packages/sysutils/busybox/profile.d/hostname.conf new file mode 100644 index 0000000000..c03c63228b --- /dev/null +++ b/packages/sysutils/busybox/profile.d/hostname.conf @@ -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 \ No newline at end of file diff --git a/packages/sysutils/busybox/profile.d/path.conf b/packages/sysutils/busybox/profile.d/path.conf index d09d931f6e..18c81147bd 100644 --- a/packages/sysutils/busybox/profile.d/path.conf +++ b/packages/sysutils/busybox/profile.d/path.conf @@ -5,9 +5,6 @@ # evironment variables that are not user defined. ################################################################################ -#------------------------------------------------------------------------------- -# General environment variables. -#------------------------------------------------------------------------------- PATH="/bin:/sbin:/usr/bin:/usr/sbin" export PATH diff --git a/packages/sysutils/busybox/profile.d/runlevel.conf b/packages/sysutils/busybox/profile.d/runlevel.conf new file mode 100644 index 0000000000..94bc54df8f --- /dev/null +++ b/packages/sysutils/busybox/profile.d/runlevel.conf @@ -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 \ No newline at end of file diff --git a/packages/sysutils/busybox/profile.d/shell.conf b/packages/sysutils/busybox/profile.d/shell.conf index a6f97f1d42..6fca97cfc5 100644 --- a/packages/sysutils/busybox/profile.d/shell.conf +++ b/packages/sysutils/busybox/profile.d/shell.conf @@ -5,9 +5,6 @@ # evironment variables that are not user defined. ################################################################################ -#------------------------------------------------------------------------------- -# Prompt environment variables. -#------------------------------------------------------------------------------- PS1='\u@\h:\w \$ ' export PS1 \ No newline at end of file diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index acc61e6114..0a0d1756d8 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -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"