source: trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remote-proxy @ 624

Last change on this file since 624 was 624, checked in by price, 16 years ago

clean up sipb-xen-remote-proxy dispatch logic

  • Property svn:executable set to *
File size: 358 bytes
RevLine 
[502]1#!/bin/sh
2# invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
[549]3klist -s || kinit -k host/remote.mit.edu
[624]4
[620]5TYPE="${0##*-}"
[624]6case "$TYPE" in
7    control )
8        SERVICE="$2" ;;
9    * )
10        SERVICE="$1" ;;
[620]11esac
[624]12
13case "$TYPE/$SERVICE" in
14    web/listvms )
15        shift; sipb-xen-remote-listvms "$@" ;;
16    * )
17        remctl black-mesa remote "$TYPE" "$@" ;;
18esac
Note: See TracBrowser for help on using the repository browser.