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