control_interface 405 Bytes
Newer Older
1
#!/bin/sh
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2
3
#
# EMULAB-COPYRIGHT
4
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
5
6
# All rights reserved.
#
7

8
. /etc/emulab/paths.sh
9

10
NODETYPE=`$BINDIR/nodetype`
11
case $NODETYPE in
Mike Hibler's avatar
Mike Hibler committed
12
pc300|pc1500|pc2000|pc2400-aero|pc2400-orbit|pc733)
13
14
    echo 'eth0'
    ;;
15
16
17
i2)
    echo 'eth1'
    ;;
Mike Hibler's avatar
Mike Hibler committed
18
pc850|pcL440GX)
19
    echo 'eth2'
20
    ;;
Mike Hibler's avatar
Mike Hibler committed
21
pc600|pc850a)
22
23
24
25
26
27
    echo 'eth4'
    ;;
*)
    echo 'unknown';
    ;;
esac