mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
busybox:
- 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:
parent
09a731f854
commit
4751f4fd41
@ -1,13 +1,10 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Core (Language) environment variables.
|
# Core (Shell) environment variables.
|
||||||
#
|
#
|
||||||
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
||||||
# evironment variables that are not user defined.
|
# evironment variables that are not user defined.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
CONFIG_CACHE="/storage/.cache"
|
||||||
# Language variables.
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
LANG='de_DE.UTF-8'
|
|
||||||
|
|
||||||
export LANG
|
export CONFIG_CACHE
|
@ -1,13 +1,16 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Core (HOME) environment variables.
|
# Core (Shell) environment variables.
|
||||||
#
|
#
|
||||||
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
||||||
# evironment variables that are not user defined.
|
# evironment variables that are not user defined.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
# setting some Variables
|
||||||
# Home environment variables.
|
if test "$FASTBOOT" = "yes"; then
|
||||||
#-------------------------------------------------------------------------------
|
IONICE="ionice -c 1 -n 0"
|
||||||
HOME="/storage"
|
NICE_20="nice -n -20"
|
||||||
|
else
|
||||||
|
FASTBOOT=no
|
||||||
|
fi
|
||||||
|
|
||||||
export HOME
|
export FASTBOOT
|
10
packages/sysutils/busybox/profile.d/hostname.conf
Normal file
10
packages/sysutils/busybox/profile.d/hostname.conf
Normal 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
|
@ -5,9 +5,6 @@
|
|||||||
# evironment variables that are not user defined.
|
# evironment variables that are not user defined.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# General environment variables.
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
||||||
|
|
||||||
export PATH
|
export PATH
|
||||||
|
14
packages/sysutils/busybox/profile.d/runlevel.conf
Normal file
14
packages/sysutils/busybox/profile.d/runlevel.conf
Normal 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
|
@ -5,9 +5,6 @@
|
|||||||
# evironment variables that are not user defined.
|
# evironment variables that are not user defined.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Prompt environment variables.
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
PS1='\u@\h:\w \$ '
|
PS1='\u@\h:\w \$ '
|
||||||
|
|
||||||
export PS1
|
export PS1
|
@ -1,13 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh -l
|
||||||
|
|
||||||
# read config
|
|
||||||
. /etc/profile
|
|
||||||
|
|
||||||
# getting runlevel
|
|
||||||
RUNLEVEL="openelec"
|
|
||||||
if test "$TEXTMODE" = yes; then
|
|
||||||
RUNLEVEL="textmode"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# starting init scripts for wanted runlevel
|
# starting init scripts for wanted runlevel
|
||||||
progress "Starting Init Scripts"
|
progress "Starting Init Scripts"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user