blob: 80e4069076563b00c80d499c53dd57bf382484e1 [file] [log] [blame]
#!/bin/ash
#
# root [[REMOTE_NAME] [SRVNAME]]
#
# remote name, selects the UFS server from the else-if below
# srv name: the name of the chan in #s
#
# when run with no args, this will also ifconfig and mount ufs for qemu
REMOTE=qemu
if [ "$#" -ge "1" ]
then
REMOTE=$1
fi
SRVNAME=$REMOTE-ufs
if [ "$#" -ge "2" ]
then
SRVNAME=$2
fi
if [ "x$REMOTE" = "xc75" ]
then
srv 'tcp!169.229.49.175!1025' $SRVNAME
elif [ "x$REMOTE" = "xa8" ]
then
srv 'tcp!169.229.49.48!1025' $SRVNAME
elif [ "x$REMOTE" = "xqemu" ]
then
srv 'tcp!10.0.2.2!1025' $SRVNAME
else
echo "Unknown remote: $REMOTE!"
exit
fi
mount -a -c /srv/$SRVNAME /mnt
ls /mnt