#!/bin/bash
# This script executed prior to installation
#

PKGSROOT=/mnt/pkgs
RUNROOT=$PKGSROOT/perl

# On successul install we're going to have a new $RUNROOT.
# Perl internals assume it. Ensure that it's not already with us.
#
[ -a "$RUNROOT" ] && {
		echo "ERROR: $RUNROOT exists!!" >2
		exit 1
}

# Should check target filesystem for freespace (twice install size!)?

# All is well.
exit 0
