#!/bin/sh ROOT=/ DEST_DIR=/usr/bin cp init.d-xen-drbd ${ROOT}/etc/init.d/xen-drbd chmod +x ${ROOT}/etc/init.d/xen-drbd cp xen-scripts-network-xen-drbd $ROOT/etc/xen/scripts/network-xen-drbd chmod +x /etc/xen/scripts/network-xen-drbd cp default-xen-drbd ${ROOT}/etc/default/xen-drbd cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start cp xen-drbd.py ${ROOT}/${DEST_DIR} for i in 2 3 4 5 do ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd #rm /etc/rc$i.d/S22xen-drbd done for i in 0 1 6 do ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd #rm /etc/rc$i.d/K21xen-drbd done