source: trunk/packages/sipb-xen-autoinstaller/host/usr/sbin/sipb-xen-install @ 750

Last change on this file since 750 was 742, checked in by ecprice, 16 years ago

Change package name

File size: 290 bytes
Line 
1#!/bin/bash
2
3export PATH
4
5HOSTNAME="$2"
6DIST="$3"
7MIRROR="$4"
8IMAGESIZE="$5"
9IP="$6"
10
11VOLUME=/dev/mapper/xenvg-d_${HOSTNAME}_hda
12
13cat > $VOLUME <<EOF
14HOSTNAME=$HOSTNAME
15DIST=$DIST
16MIRROR=$MIRROR
17IMAGESIZE=$IMAGESIZE
18IP=$IP
19return
20EOF
21
22xm create autoinstall.cfg target=$HOSTNAME guestip=$IP
Note: See TracBrowser for help on using the repository browser.