support per device config

when the file `~/.divested.vars.${BDEVICE}` exists it get
sourced after the default variables set by init.sh.

so to make use of this you have to

`export BDEVICE=hotdog`

before `source ../Scripts/init.sh`. Then the file `~/.divested.vars.hotdog` will
be sourced - if existent.

this way one can:

- override defaults without touching the init.sh (makes git pull more convenient)
- set different settings for different devices

Signed-off-by: steadfasterX <steadfasterX@gmail.com>
This commit is contained in:
steadfasterX 2023-04-14 09:32:55 +00:00 committed by Tad
parent a3807ca12d
commit ad32c617d5

View File

@ -106,6 +106,7 @@ export DOS_THEME_700="E64A19"; #Deep Orange 700
# #
#END OF USER CONFIGURABLE OPTIONS #END OF USER CONFIGURABLE OPTIONS
# #
[ -f "$HOME/.divested.vars.${BDEVICE}" ] && source $HOME/.divested.vars.${BDEVICE} && echo "included $HOME/.divested.vars.${BDEVICE} config"
umask 0022; umask 0022;