xen-drbd
view INSTALL @ 27:a1403dbe68c0
retrying drbd release
| author | igor | 
|---|---|
| date | Wed Feb 20 11:18:43 2008 +0200 (2008-02-20) | 
| 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
