Add bin directory

This commit is contained in:
2019-12-18 10:04:20 +01:00
parent 075c9bc55e
commit 9300b749d6
9 changed files with 123 additions and 0 deletions

22
bin/autostart Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
export LOGDIR="$HOME/.var/log"
export RUNDIR="$HOME/.var/run"
export LIBDIR="$HOME/.var/lib"
export BINDIR="$HOME/bin"
LOGFILE="$LOGDIR/autostart.log"
log() {
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
}
if [[ -d "$HOME/.autostart" ]] ; then
log "Looking for autostart files."
for f in "$HOME/.autostart/"*.sh ; do
if [[ -x "$f" ]] ; then
log "Executing autostart file \"$f\""
. "$f"
fi
done
fi