xen-drbd
view INSTALL @ 41:a2e536ffabf7
bootloader arg in dump
author | igor@manas.xt.vpn |
---|---|
date | Mon Sep 22 15:31:57 2008 +0300 (2008-09-22) |
parents | 128f4bc3f522 |
children | d3198c10cc10 |
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 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