White Paper

10
if [[ ! -f /etc/dhcptab && -f /etc/opt/ignite/dhcptab ]];then
# If it's not a symlink at this point it should be.
if [[ ! -L /etc/dhcptab ]];then
rm /etc/dhcptab
ln -s /etc/opt/ignite/dhcptab /etc/dhcptab
fi
fi
# If /etc/dhcptab exists and so does the /etc/opt/ignite/dhcptab
# move the original dhcptab aside and symlink it to the ignite
# one.
if [[ -f /etc/dhcptab && -f /etc/opt/ignite/dhcptab ]];then
mv /etc/dhcptab /etc/dhcptab.iux.backup
ln -s /etc/opt/ignite/dhcptab /etc/dhcptab
fi
# If recovery_cmds directory is present, assume depot is present
# and register
# NOTE: Additional shared depot registration can be added here
if [[ -d /var/opt/ignite/depots/recovery_cmds ]];then
/usr/sbin/swreg -ldepot /var/opt/ignite/depots/recovery_cmds
fi
test_return 51
}
function customer_defined_halt_cmds
{
# If /etc/bootptab is a sym link, remove it.
# Restore backup if it exists.
if [[ -L /etc/bootptab ]];then
rm /etc/bootptab
fi
if [[ -f /etc/bootptab.iux.backup ]];then
mv /etc/bootptab.iux.backup /etc/bootptab
fi
# Remove the symlink for /etc/dhcptab if it exists.
if [[ -L /etc/dhcptab ]];then
rm /etc/dhcptab
fi
# Move /etc/dhcptab.iux.backup back to /etc/dhcptab if it exists
if [[ -f /etc/dhcptab.iux.backup ]];then
mv /etc/dhcptab.iux.backup /etc/dhcptab
fi
# If recovery_cmds directory is present, assume depot is present
# and unregister.
# NOTE: Additional shared depots can be handled similarly
if [[ -d /var/opt/ignite/depots/recovery_cmds ]];then
/usr/sbin/swreg -ldepot -u /var/opt/ignite/depots/recovery_cmds
fi