Unified · Split
| @@ -1498,12 +1498,13 @@ findrr (int *validrc, char *os, char *arch) · 1497 unmodified lines | ||
| 1498 | 1498 | snprint (location, sizeof (location), |
| 1499 | 1499 | "%s/%s", path, tmpDr->name); |
| 1500 | 1500 | |
| 1501 | − if (vflag) print ("checking for remote location[%s]\n",location); | |
| 1502 | − if (DMDIR & tmpDr->mode) { | |
| 1503 | − tmp = validaterr (location, os, arch); | |
| 1504 | − if (tmp != nil) { | |
| 1505 | − allremotenodes[tmprc] = tmp; | |
| 1506 | − ++tmprc; | |
| 1501 | + /* entry should be directory and should not be "local" */ | |
| 1502 | + if ( (DMDIR & tmpDr->mode) && (strcmp (tmpDr->name, VALIDATEDIR) != 0) ) { | |
| 1503 | + if (vflag) print ("checking for remote location[%s]\n",location); | |
| 1504 | + tmp = validaterr (location, os, arch); | |
| 1505 | + if (tmp != nil) { | |
| 1506 | + allremotenodes[tmprc] = tmp; | |
| 1507 | + ++tmprc; | |
| 1507 | 1508 | if (vflag) print ("Resource [%s]\n", tmp->path); |
| 1508 | 1509 | } |
| 1509 | 1510 | } |
| @@ -33,13 +33,16 @@ EXAMPLES · 32 unmodified lines | ||
| 33 | 33 | pflag=$BRASIL_PORT |
| 34 | 34 | lflag=$HARE_LOCATION |
| 35 | 35 | |
| 36 | −while getopts 'fp:l:' OPTION | |
| 36 | +while getopts 'fbp:l:' OPTION | |
| 37 | 37 | do |
| 38 | 38 | case $OPTION in |
| 39 | 39 | p) pflag="$OPTARG" |
| 40 | 40 | ;; |
| 41 | 41 | l) lflag="$OPTARG" |
| 42 | 42 | ;; |
| 43 | + b) echo "Running without any arguments" | |
| 44 | + bflag="true" | |
| 45 | + ;; | |
| 43 | 46 | f) echo "Running in forground" |
| 44 | 47 | fflag="true" |
| 45 | 48 | ;; |
| @@ -80,6 +83,11 @@ fi · 34 unmodified lines | ||
| 80 | 83 | # Launch the brasil |
| 81 | 84 | arg=`echo "'"tcp!*!$pflag"'"` |
| 82 | 85 | |
| 86 | + | |
| 87 | +if [ ! -z $bflag ] | |
| 88 | +then | |
| 89 | + $brasil_exec | |
| 90 | +fi | |
| 83 | 91 | if [ -z $fflag ] |
| 84 | 92 | then |
| 85 | 93 | $brasil_exec server -h $arg < /dev/null > /dev/null & |