mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +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
|
TMP_BOOT_LOG=/tmp/_boot.log
|
||||||
PID_FILE=/tmp/rc.pid
|
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
|
source /etc/init.d/base
|
||||||
|
|
||||||
|
@ -27,6 +27,11 @@ if [ "$PS1" ]; then
|
|||||||
export TERM=linux
|
export TERM=linux
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
if [ -f /data/etc/profile ]; then
|
# custom local profile
|
||||||
source /data/etc/profile
|
test -f /data/etc/profile && source /data/etc/profile
|
||||||
fi
|
|
||||||
|
# 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