Barret pointed out that the inclusion of regions was a mistake.
[akaros.git] / kern / kfs / root
1 #!/bin/ash
2 #
3 # root [[REMOTE_NAME] [SRVNAME]]
4 #
5 # remote name, selects the UFS server from the else-if below
6 # srv name: the name of the chan in #s
7 #
8 # when run with no args, this will also ifconfig and mount ufs for qemu
9
10 REMOTE=qemu
11 if [ "$#" -ge "1" ]
12 then
13         REMOTE=$1
14 fi
15
16 SRVNAME=$REMOTE-ufs
17 if [ "$#" -ge "2" ]
18 then
19         SRVNAME=$2
20 fi
21
22 if [ "x$REMOTE" = "xc75" ]
23 then
24         srv 'tcp!169.229.49.175!1025' $SRVNAME
25 elif [ "x$REMOTE" = "xa8" ]
26 then
27         srv 'tcp!169.229.49.48!1025' $SRVNAME
28 elif [ "x$REMOTE" = "xqemu" ]
29 then
30         srv 'tcp!10.0.2.2!1025' $SRVNAME
31 else
32         echo "Unknown remote: $REMOTE!"
33         exit
34 fi
35
36 mount -a -c /srv/$SRVNAME /mnt
37 ls /mnt