#! /bin/sh -e

# Source debconf library.
. /usr/share/debconf/confmodule

db_version 2.0

if [ -x /usr/bin/update-cluster-parseconfig -a \
        -f /etc/update-cluster/cluster.xml ]; then
        
        echo "Generating /etc/openmosix/openmosix.map using update-cluster";
        /usr/sbin/update-cluster-regenerate openmosix
fi

#if [ -f /etc/openmosix.map -a ! -h /etc/openmosix.map ]; then
#    mv /etc/openmosix.map /etc/openmosix.map.orig
#fi

#ln -sf /etc/openmosix/openmosix.map /etc/openmosix.map


#DEBHELPER#
