Changeset 733


Ignore:
Timestamp:
Apr 22, 2008, 11:55:04 PM (16 years ago)
Author:
geofft
Message:
* Sync the code structure in signup-minimal and onathena
* Deal with $ATHENA_USER for Debathena
* Always attempt to attach $lname
Location:
locker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • locker/bin/signup-minimal

    r726 r733  
    2525    read whofor
    2626    if [ "$whofor" = 1 ]; then
    27         lname=$USER
    28         lroot=$HOME
     27        lname="${ATHENA_USER:-$USER}"
    2928    elif [ "$whofor" = 2 ]; then
    3029        echo
     
    3231        echo "Please enter the name of the selected locker below."
    3332        echo "(For the locker /mit/sipb, you would enter sipb)."
    34         while true; do
    35             printf "Locker name: "
    36             read lname
    37             if attach "$lname"; then
    38                 break
    39             fi
    40             echo "$lname is not a valid locker name."
    41         done
    42         lroot="/mit/$lname"
     33        printf "Locker name: "
     34        read lname
    4335    else
    4436        echo
     
    4739        exit 1
    4840    fi
     41    while true; do
     42        if attach "$lname"; then
     43            break
     44        fi
     45        echo "$lname is not a valid locker name."
     46        printf "Locker name: "
     47        read lname
     48    done
    4949  else
    50     lname=$1
     50    lname="$1"
    5151  fi
    5252fi
     53lroot="/mit/$lname"
    5354
    5455attach "$lname" 2>/dev/null
  • locker/deploy/bin/onathena

    r524 r733  
    6363read whofor
    6464if [ "$whofor" = 1 ]; then
    65     lname=$USER
    66     lroot=$HOME
     65    lname="${ATHENA_USER:-$USER}"
    6766elif [ "$whofor" = 2 ]; then
    6867    echo
     
    7372    printf "Locker name: "
    7473    read lname
    75     lroot="/mit/$lname"
    7674else
    7775    echo
     
    8078    exit 1
    8179fi
     80while true; do
     81    if attach "$lname"; then
     82        break
     83    fi
     84    echo "$lname is not a valid locker name."
     85    printf "Locker name: "
     86    read lname
     87done
     88lroot="/mit/$lname"
    8289
    8390echo
Note: See TracChangeset for help on using the changeset viewer.