xen-drbd

view INSTALL @ 21:fc201b0bc6f9

trunk down before making bridge
author igor
date Sun Feb 17 12:23:52 2008 +0200 (2008-02-17)
parents 7af6c8ecdf0c
children fc4025aa8287
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}
11 cp xen-drbd-install.py ${ROOT}/${DEST_DIR}
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 chmod +x /etc/xen/scripts/network-xen-drbd
25 cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
26 cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
27 set +x
30 for i in 2 3 4 5
31 do
32 set -x
33 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
34 set +x
35 done
37 for i in 0 1 6
38 do
39 set -x
40 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
41 set +x
42 done