Whamcloud - gitweb
* Modified socknal to...
[fs/lustre-release.git] / lustre / portals / tests / startserver.sh
1 #!/bin/sh
2
3 SIMPLE=${SIMPLE:-0}
4
5 if [ $SIMPLE -eq 0 ]; then
6         PING=pingsrv.o
7 else
8         PING=spingsrv.o
9 fi
10
11 case "$1" in
12         tcp)
13                 /sbin/insmod  ../oslib/portals.o
14                 /sbin/insmod ../socknal/ksocknal.o
15                 /sbin/insmod ./$PING nal=2
16                 echo ksocknal > /tmp/nal
17         ;;
18         
19         elan)
20                 /sbin/insmod  ../oslib/portals.o
21                 /sbin/insmod ../qswnal/kqswnal.o
22                 /sbin/insmod ./$PING nal=4
23                 echo kqswnal > /tmp/nal
24         ;;
25
26         gm)
27                 /sbin/insmod  portals
28                 /sbin/insmod kgmnal
29                 /sbin/insmod ./$PING nal=3
30                 echo kgmnal > /tmp/nal
31         ;;
32         
33         *)
34                 echo "Usage : ${0} < tcp | elan | gm>"
35                 exit 1;
36 esac
37 ../utils/acceptor 9999&
38 exit 0;