xen-drbd
view INSTALL @ 51:d3198c10cc10
minifix
author | root@linux10 |
---|---|
date | Fri Oct 10 18:35:48 2008 +0000 (2008-10-10) |
parents | fc4025aa8287 |
children | f7d6a94aa307 |
line source
1 #!/bin/sh
3 ROOT=/
4 DEST_DIR=/usr/local/sbin
6 echo -------------------------------------------------
7 echo Installation of xen-drbd to $ROOT$DEST_DIR
8 echo -------------------------------------------------
9 set -x
10 cp xen-drbd.py ${ROOT}/${DEST_DIR}/xen-drbd
11 cp xen-drbd-install.py ${ROOT}/${DEST_DIR}/xen-drbd-install
12 set +x
14 echo -------------------------------------------------
15 echo Installing of xen-drbd configs and boot scripts to /etc:
16 echo -------------------------------------------------
18 set -x
19 cp init.d-xen-drbd ${ROOT}/etc/init.d/xen-drbd
20 chmod +x ${ROOT}/etc/init.d/xen-drbd
22 cp xen-scripts-network-xen-drbd $ROOT/etc/xen/scripts/network-xen-drbd
23 cp network-bridge-for-xen-drbd $ROOT/etc/xen/scripts/network-bridge-for-xen-drbd
24 chmod +x /etc/xen/scripts/network-xen-drbd
26 cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
27 cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
28 set +x
31 for i in 2 3 4 5
32 do
33 set -x
34 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
35 set +x
36 done
38 for i in 0 1 6
39 do
40 set -x
41 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
42 set +x
43 done