This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
bash-shell-network/238/startup/238-mounts.sh

16 lines
392 B
Bash
Executable File

#!/bin/bash
llog "startup for 238 mounts"
dir=$(dirname "$(dirname -- "${BASH_SOURCE[0]}")")
for f in $dir/function/ssh-mounts/*; do
llog "sourcing: $f"
source "$f"
done
# declare -F | grep 238
mkdir -p $dir/logs
touch $dir/logs/238-mount.log
( sleep 60 ;
echo $(date) > $dir/logs/238-mount.log;
llog "after delay 238 network mounting"
ssh-mount-238 2>&1 | tee -a $dir/logs/238-mount.log
) &