Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
#!/bin/bash
# preinstall.sh
# Script to relocate windows image safe data to prevent GRUB collision
# Adam Hobbs and Steven Knapp - Kingston University London
# July 2008
dd if=/dev/sda of=/tmp/zisd skip=5 count=13 bs=512
dd if=/tmp/zisd of=/tmp/label bs=1 count=4
label=`cat /tmp/label`;export label
if [ "$label" == "ZISD" ] ; then
echo "Need to relocate ZISD"
dd if=/tmp/zisd of=/dev/sda seek=16 count=13 bs=512
else
echo "ZISD is OK"
fi
<scripts>
<pre-scripts config:type="list">
<script>
<feedback config:type="boolean">false </feedback>
<location>nfs://myserver/mypath/preinstall.sh </location>
</script>
</pre-scripts>
</scripts>