dtfscript: Move to dedicated folder
This commit is contained in:
parent
28817a4542
commit
df9bf53a9d
@ -21,7 +21,7 @@
|
||||
# SOFTWARE.
|
||||
|
||||
# Load session startup script
|
||||
dtfscript=$HOME/.config/dtfscripts/dtfscript
|
||||
dtfscript="$HOME/.dtfscripts/dtfscript"
|
||||
if [[ -x "$dtfscript" ]]; then
|
||||
source "$dtfscript"
|
||||
exit 0
|
||||
|
@ -63,12 +63,12 @@ if [[ "$XDG_RUNTIME_DIR" == "" ]]; then
|
||||
fi
|
||||
|
||||
## Set some more variables
|
||||
export DTF_CONFIG_HOME="$XDG_CONFIG_HOME/dtfscripts"
|
||||
export DTF_SERVICES_DIR="$DTF_CONFIG_HOME/services"
|
||||
export DTF_TASKS_DIR="$DTF_CONFIG_HOME/tasks"
|
||||
export DTF_HOME="$HOME/.dtfscripts"
|
||||
export DTF_SERVICES_DIR="$DTF_HOME/services"
|
||||
export DTF_TASKS_DIR="$DTF_HOME/tasks"
|
||||
|
||||
## Load device-specific scripts
|
||||
if [[ -x "$DTF_CONFIG_HOME/devices/$(hostname).rc" ]]; then
|
||||
if [[ -x "$DTF_HOME/devices/$(hostname).rc" ]]; then
|
||||
dtf_log "Sourcing devices/$(hostname).rc"
|
||||
source $HOME/.config/dtfscripts/devices/$(hostname).rc
|
||||
fi
|
||||
@ -98,7 +98,7 @@ function dtf_task_run() {
|
||||
dtf_log "Task is unexecutable: $task"
|
||||
exit 1
|
||||
fi
|
||||
source "$DTF_CONFIG_HOME/common_task.sh"
|
||||
source "$DTF_HOME/common_task.sh"
|
||||
source "$task_full"
|
||||
)
|
||||
}
|
||||
@ -139,7 +139,7 @@ function dtf_service_start() {
|
||||
service_full="$DTF_SERVICES_DIR/$1"
|
||||
dtf_service_validate $1 || return 1
|
||||
(
|
||||
source "$DTF_CONFIG_HOME/common_service.sh"
|
||||
source "$DTF_HOME/common_service.sh"
|
||||
source "$service_full"
|
||||
isup && [[ "$service_kill_on_reload" == "true" ]] && stop
|
||||
prestart || exit 1
|
Loading…
Reference in New Issue
Block a user