3 # root [[REMOTE_NAME] [SRVNAME]]
5 # remote name: selects the UFS server/dialstring from your local configs
6 # srv name: optional name for the chan in #s
8 # when run with no args, this will mount ufs for qemu
10 DIALSTRING='tcp!10.0.2.2!1025'
24 # Given $REMOTE, override DIALSTRING. Use something like this:
26 #if [ "x$REMOTE" = "xqemu" ]
29 #elif [ "x$REMOTE" = "xSOMEHOST" ]
31 # DIALSTRING='tcp!SOMEIP!1025'
33 # echo "Unknown remote: $REMOTE!"
36 [[ -f /etc/netmounts ]] && source /etc/netmounts
38 srv $DIALSTRING $SRVNAME
40 mount -a -c /srv/$SRVNAME /mnt