version 1.72, 2000/09/02 15:59:29 |
version 1.73, 2000/11/08 19:09:29 |
|
|
if [ "$cmd2" ]; then |
if [ "$cmd2" ]; then |
# we are carrying over from the 'read dt dtaddr' last time |
# we are carrying over from the 'read dt dtaddr' last time |
set -- $cmd2 |
set -- $cmd2 |
af="$1" name="$2" mask="$3" bcaddr="$4" ext1="$5" ext2="$6" |
af="$1" name="$2" mask="$3" bcaddr="$4" ext1="$5" cmd2= |
cmd2= |
# make sure and get any remaining args in ext2, like the read below |
|
i=1; while [ i -lt 6 -a "$1" ]; do shift; let i=i+1; done |
|
ext2="$@" |
else |
else |
# read the next line or exit the while loop |
# read the next line or exit the while loop |
read af name mask bcaddr ext1 ext2 || break |
read af name mask bcaddr ext1 ext2 || break |