#!/bin/bash function startup_load () { local SDIRS local SDIR local DIRS DIRS=( \ $BASH_SHELL_BASE \ $BASH_SHELL_NETWORK/all \ $BASH_SHELL_NETWORK/$NETWORKNAME \ $BASH_SHELL_HOST/all \ $BASH_SHELL_HOST/$(hostname) \ ) echo directories ${DIRS[*]} [[ $1 ]] && DIRS=("$1") llog "startup directories to try ${DIRS[*]}" SDIRS=() j=0 cnt=${#DIRS[@]} for ((i=0;i/dev/null) || startup_load