Xmd/session/src/xmd-run-startup-items

21 lines
274 B
Bash
Executable File

#!/bin/sh
name=`basename "$0"`
usage() {
echo "Usage: $name" >&2
exit 2
}
[ "$#" -gt 0 ] && usage
if [ -z "$XMD_STARTUPDIR" ]; then
echo "$name \$XMD_STARTUPDIR not set" >&2
exit 1
fi
for item in "$XMD_STARTUPDIR"/*; do
if [ -x "$item" ]; then
"$item" &
fi
done