echo "*****************************************************"␊ |
␊ |
if [ ${disksignature} == "00000000" ]; then␊ |
␉# echo "Windows is not installed so let's change the active partition"␊ |
␊ |
␉partitionactive=$( fdisk440 -d ${bootrdisk} | grep -n "*" | awk -F: '{print $1}')␊ |
␉echo "${partitionactive}"␊ |
␉echo "Current Active Partition: ${partitionactive}"␊ |
␊ |
␉if [ -n "${partitionactive}" ]; then ␊ |
␉␉echo "${bootvolume} is flagged as active"␊ |
␉else␊ |
␉if [ ${partitionactive} -ne ${bootslice} ]; then␊ |
␉␉echo "${bootvolume} is not flagged as active, so let's do it."␊ |
␉␉# // If table is GPT make the first partition active (BadAxe compatibility).␊ |
|
␉␉# BadAxe requires EFI partition to be flagged active.␊ |
␉␉# but it doesn't' hurt to do it for any non-windows partition.␊ |
␉␉␊ |
␉␉fdisk440 -e ${bootrdisk} <<-MAKEACTIVE␊ |
␉␉print␊ |
␉␉flag ${bootslice}␊ |
|
␉␉y␊ |
␉␉quit␊ |
␉␉MAKEACTIVE␊ |
␉else␊ |
␉␉echo "${bootvolume} is already flagged as active"␊ |
␉fi␊ |
else␊ |
␉echo "Windows is installed so we let that remain the active partition"␊ |
fi␊ |
echo "-----------------------------------------------"␊ |
echo ""␊ |