Add support for /etc/environment

This commit is contained in:
Calin Crisan 2019-01-27 22:20:09 +02:00
parent 79b2870009
commit 75a1f0526a
2 changed files with 13 additions and 3 deletions

View File

@ -4,6 +4,11 @@ BOOT_LOG=/var/log/boot.log
TMP_BOOT_LOG=/tmp/_boot.log
PID_FILE=/tmp/rc.pid
set -a
test -f /etc/environment && source /etc/environment
test -f /data/etc/environment && source /data/etc/environment
test -f /boot/etc/environment && source /boot/etc/environment
set +a
source /etc/init.d/base

View File

@ -27,6 +27,11 @@ if [ "$PS1" ]; then
export TERM=linux
fi;
if [ -f /data/etc/profile ]; then
source /data/etc/profile
fi
# custom local profile
test -f /data/etc/profile && source /data/etc/profile
# global environment variables
test -f /etc/environment && source /etc/environment
test -f /data/etc/environment && source /data/etc/environment
test -f /boot/etc/environment && source /boot/etc/environment