mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Add support for /etc/environment
This commit is contained in:
parent
79b2870009
commit
75a1f0526a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user